Part Number Hot Search : 
SS5N90 K1300 10A40 EPR1033 5N60K IRF362 00020 1REEL
Product Description
Full Text Search
 

To Download ADUC7060BSTZ32-RL Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  low power, precision analog microcontroller , dual sigma-delta adcs, flash/ee, arm7tdmi aduc7060/aduc7061 rev. c information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ?2009C2011 analog devices, inc. all rights reserved. features analog input/output dual (24-bit) adcs single-ended and differential inputs programmable adc output rate (4 hz to 8 khz) programmable digital filters built-in system calibration low power operation mode primary (24-bit) adc channel 2 differential pairs or 4 single-ended channels pga (1 to 512) input stage selectable input range: 2.34 mv to 1.2 v 30 nv rms noise auxiliary (24-bit) adc: 4 differential pairs or 7 single- ended channels on-chip precision reference (10 ppm/c) programmable sensor excitation current sources 200 a to 2 ma current source range single 14-bit voltage output dac microcontroller arm7tdmi core, 16-/32-bit risc architecture jtag port supports code download and debug multiple clocking options memory 32 kb (16 kb 16) flash/ee memory, including 2 kb kernel 4 kb (1 kb 32) sram tools in-circuit download, jtag based debug low cost, quickstart? development system communications interfaces spi interface (5 mbps) 4-byte receive and transmit fifos uart serial i/o and i 2 c (master/slave) on-chip peripherals 4 general-purpose (capture) timers including wake-up timer watchdog timer vectored interrupt controller for fiq and irq 8 priority levels for each interrupt type interrupt on edge or level external pin inputs 16-bit, 6-channel pwm general-purpose inputs/outputs up to 14 gpio pins that are fully 3.3 v compliant power avdd/dvdd specified for 2.5 v (5%) active mode: 2.74 ma (@ 640 khz, adc0 active) 10 ma (@ 10.24 mhz, both adcs active) packages and temperature range fully specified for ?40c to +125c operation 32-lead lfcsp (5 mm 5 mm) 48-lead lfcsp and lqfp derivatives 32-lead lfcsp (aduc7061) 48-lead lqfp and 48-lead lfcsp (aduc7060) applications industrial automation and process control intelligent, precision sensing systems, 4 ma to 20 ma loop-based smart sensors general description the aduc706x series are fully integrated, 8 ksps, 24-bit data acqui- sition systems incorporating high performance multichannel sigma-delta (-) analog-to-digital converters (adcs), 16-bit/ 32-bit arm7tdmi? mcu, and flash/ee memory on a single chip. the adcs consist of a primary adc with two differential pairs or four single-ended channels and an auxiliary adc with up to seven channels. the adcs operate in single-ended or differential input mode. a single-channel buffered voltage output dac is available on chip. the dac output range is programmable to one of four voltage ranges. the devices operate from an on-chip oscillator and a pll gene- rating an internal high frequency clock up to 10.24 mhz. the microcontroller core is an arm7tdmi, 16-bit/32-bit risc machine offering up to 10 mips peak performance; 4 kb of sram and 32 kb of nonvolatile flash/ee memory are provided on chip. the arm7tdmi core views all memory and registers as a single linear array. the aduc706x contains four timers. timer1 is a wake-up timer with the ability to bring the part out of power saving mode. timer2 is configurable as a watchdog timer. a 16-bit pwm with six output channels is also provided. the aduc706x contains an advanced interrupt controller. the vectored interrupt controller (vic) allows every interrupt to be assigned a priority level. it also supports nested interrupts to a maximum level of eight per irq and fiq. when irq and fiq interrupt sources are combined, a total of 16 nested interrupt levels is supported. on-chip factory firmware supports in-circuit serial download via the uart serial interface ports and nonintrusive emulation via the jtag interface. the parts operate from 2.375 v to 2.625 v over an industrial temperature range of ?40c to +125c.
aduc7060/aduc7061 rev. c | page 2 of 108 table of contents features .............................................................................................. 1 ? applications....................................................................................... 1 ? general description ......................................................................... 1 ? revision history ............................................................................... 3 ? functional block diagram .............................................................. 4 ? specifications..................................................................................... 5 ? electrical specifications............................................................... 5 ? timing specifications ................................................................ 10 ? absolute maximum ratings.......................................................... 14 ? esd caution................................................................................ 14 ? pin configurations and function descriptions ......................... 15 ? terminology .................................................................................... 20 ? overview of the arm7tdmi core............................................. 21 ? thumb mode (t)........................................................................ 21 ? multiplier (m) ............................................................................. 21 ? embeddedice (i) ....................................................................... 21 ? arm registers ............................................................................ 21 ? interrupt latency........................................................................ 22 ? memory organization ............................................................... 22 ? flash/ee control interface........................................................ 23 ? memory mapped registers ....................................................... 27 ? complete mmr listing............................................................. 28 ? reset ............................................................................................. 33 ? oscillator, pll, and power control ............................................. 34 ? clocking system ......................................................................... 34 ? power control system................................................................ 34 ? adc circuit information.............................................................. 38 ? reference sources....................................................................... 39 ? diagnostic current sources ...................................................... 39 ? sinc3 filter................................................................................... 40 ? adc chopping........................................................................... 40 ? programmable gain amplifier................................................. 40 ? excitation sources ...................................................................... 40 ? adc low power mode.............................................................. 40 ? adc comparator and accumulator ....................................... 41 ? temperature sensor ................................................................... 41 ? adc mmr interface ................................................................. 41 ? example application circuits................................................... 54 ? dac peripherals ............................................................................. 56 ? dac.............................................................................................. 56 ? mmr interface ........................................................................... 56 ? using the dac............................................................................ 57 ? nonvolatile flash/ee memory ..................................................... 58 ? flash/ee memory reliability.................................................... 58 ? programming.............................................................................. 58 ? processor reference peripherals................................................... 59 ? interrupt system ......................................................................... 59 ? irq ............................................................................................... 59 ? fast interrupt request (fiq) .................................................... 60 ? programmed interrupts............................................................. 61 ? vectored interrupt controller (vic)....................................... 61 ? vic mmrs.................................................................................. 61 ? timers .............................................................................................. 66 ? timer0.......................................................................................... 67 ? timer1 or wake-up timer ....................................................... 69 ? timer2 or watchdog timer ...................................................... 71 ? timer3.......................................................................................... 73 ? pulse-width modulator................................................................. 75 ? pulse-width modulator general overview ........................... 75 ? uart serial interface .................................................................... 80 ? baud rate generation................................................................ 80 ? uart register definitions ....................................................... 80 ? i 2 c ..................................................................................................... 86 ? configuring external pins for i 2 c functionality ................... 86 ? serial clock generation ............................................................ 87 ? i 2 c bus addresses....................................................................... 87 ? i 2 c registers ................................................................................ 87 ? serial peripheral interface ............................................................. 96 ? miso (master in, slave out) pin............................................. 96 ? mosi (master out, slave in) pin............................................. 96 ? sclk (serial clock i/o) pin..................................................... 96 ? slave select (p0.0/ ss ) input pin ............................................... 96 ? configuring external pins for spi functionality................... 96 ? spi registers................................................................................ 97 ? general-purpose i/o ................................................................... 101 ? gpxcon registers................................................................... 101 ? gpxdat registers ................................................................... 102 ? gpxset registers..................................................................... 102 ? gpxclr registers.................................................................... 102 ? gpxpar registers .................................................................... 102 ?
aduc7060/aduc7061 rev. c | page 3 of 108 hardware design considerations .............................................. 104 ? power supplies.......................................................................... 104 ? outline dimensions......................................................................105 ? ordering guide .........................................................................106 ? revision history 5/11rev. b to rev. c change to figure 1 ............................................................................4 changes to table 1 ............................................................................6 add temporary protection section and keyed permanent protection section ...........................................................................25 added permanent protection section and sequence to write the software protection key and set permanent protection section ..............................................................................................26 changes to power control system section..................................35 changes to bit 9:6, table 43 ...........................................................45 changes to primary channel adc data register section and table 49.............................................................................................50 changes to irqen section and irqclr section .....................59 changes to timer1 or wake-up timer section .........................69 changes to table 108 ....................................................................101 2/10rev. a to rev. b changes to features section ............................................................1 changes to table 1 ............................................................................4 changes to digital i/o voltage to dgnd parameter ................14 changes to pin 19, pin 20, and pin 45 descriptions (table 8)..16 changes to pin 13, pin 14, and pin 29 descriptions (table 9)..18 changes to bit 8 in table 14...........................................................23 changes to table 20 ........................................................................28 changes to power control system section..................................34 added table 32 ................................................................................35 changes to endnote 2 and endnote 3 of table 34 ......................36 changes to table 42 ........................................................................42 changes to bit 12 and bits[3:0] in table 43 .................................44 changes to bit 12 in table 44 ........................................................45 changes to endnote 2 in table 45.................................................47 changes to bit 5 in table 63...........................................................55 changes to serial downloading (in-circuit programming) section ..............................................................................................57 changes to priority registers section ..........................................61 changes to gpxpar registers section ......................................101 6/09rev. 0 to rev. a added aduc7061.............................................................. universal added new package cp-32-4........................................... universal changes to features section ............................................................1 changes to general description section .......................................1 changes to figure 1...........................................................................4 changes to table 1 ............................................................................7 deleted endnote to table 2............................................................10 changes to endnotes, table 3 and table 4...................................11 changes to endnotes, table 5........................................................12 changes to endnotes, table 6........................................................13 changes to figure 7 and table 8 ...................................................15 added figure 8 and table 9, renumbered sequentially............18 changes to flash ee/control interface section..........................23 change to code 0x04 description, table 15 ...............................24 change to bit 31 description, table 16........................................25 changes to table 17 ........................................................................27 changes to table 19 t0clri and table 20..................................28 changes to endnote, table 21 .......................................................29 change to spitx default value, table 25 ...................................30 changes to external clock selection section .............................33 changes to adc circuit information section............................36 change to column heading table 35 ..........................................37 change to bit 6 description, table 39..........................................40 change to bit 12 description, table 43........................................44 changes to primary channel adc data register section and auxiliary channel adc data register section ..................48 change to table 59 and figure 17.................................................51 changes to using the dac section ..............................................55 changes to nonvolatile flash/ee memory section and programming section.....................................................................56 changes to vectored interrupt controller (vic) section.........59 changes to priority registers section ..........................................60 change to table 73..........................................................................61 changes to figure 23 ......................................................................65 changes table 78.............................................................................66 changes to figure 24 and table 79 ...............................................68 changes to timer2 interface section and figure 25 ..................69 changes to timer3 capture register section .............................71 change to bits[16:12] description, table 81...............................72 changes pulse-width modulator general overview section, table 82, and figure 26...................................................................73 changes to table 84 column headings .......................................75 changes to table 92 ........................................................................82 changes to bit 1, table 102............................................................90 changes to bit 11 description, table 105 ....................................95 changes to spimde bit description, table 106.........................97 updated outline dimensions......................................................103 changes to ordering guide.........................................................104 4/09revision 0: initial version
aduc7060/aduc7061 rev. c | page 4 of 108 functional block diagram precision analog peripherals por memory 32kb flash 4kb ram arm7tdmi mcu 10mhz on-chip osc (3%) pll 4 timers wdt w/u timer pwm gpio port uart port spi port i 2 c port vic (vectored interrupt controller) mux mux 24-bit - ? adc buf 24-bit - ? adc pga precision reference temp sensor 14-bit dac reset xtalo xtali adc0 adc1 adc5 adc4 adc3 adc2 adc6 adc7 adc8 adc9 iexc0 iexc1 dac0 vref+ vref? gnd_sw aduc7060/ aduc7061 buf 07079-001 figure 1.
aduc7060/aduc7061 rev. c | page 5 of 108 specifications electrical specifications v dd = 2.5 v 5%, vref+ = 1.2 v, vref? = gnd, f core = 10.24 mhz driven from an external 32.768 khz watch crystal or on-chip oscillator, all specifications t a = ?40c to +125c, unless otherwise noted. output noise specifications can be found in table 36 (primary adc) and table 38 (adc auxiliary channel). table 1. aduc706x specifications parameter test conditions/comments min typ max unit adc specifications for all adc specifications, assume normal operating mode unless specifically stated otherwise conversion rate 1 chop off, adc normal operating mode 50 8000 hz chop on, adc normal operating mode 4 2600 hz chop on, adc low power mode 1 650 hz main channel no missing codes 1 chop off (f adc 1 khz) 24 bits chop on (f adc 666 hz) 24 bits integral nonlinearity 1 , 2 gain = 4 15 ppm of fsr offset error 3 , 4 chop off, offset error is in the order of the noise for the pro- grammed gain and update rate following calibration ?27 8 +27 v offset error 1 , 3 , 4 chop on ?2.7 0.5 +2.7 v offset error drift vs. temperature 5 chop off (with gain 64) 650/pga_gain nv/c chop on (with gain 64) 10 nv/c full-scale error 1 , 6 , 7 , 8 normal mode ?1 0.5 +1 mv full-scale error 6 , 8 low power mode ?2 1.0 +2 mv gain drift vs. temperature 9 5 ppm/c pga gain mismatch error 0.1 % power supply rejection 1 chop on, adc = 1 v (gain = 1) 65 db chop on, adc = 7.8 mv (gain = 128) 84.7 113 db chop off, adc = 1 v (gain = 1) 56 65 db auxiliary channel no missing codes 1 chop off (f adc 1 khz) 24 bits chop on (f adc 666 hz) 24 bits integral nonlinearity 1 15 ppm of fsr offset error 4 chop off ?120 30 +100 v offset error 1 , 4 chop on ?1.5 0.5 +3.2 v offset error drift vs. temperature 5 chop off 200 nv/c chop on 10 nv/c full-scale error 1 , 6 , 7 , 8 normal mode ?1 0.5 +1 mv full-scale error 1 , 6 , 8 low power mode ?2 1.0 +2 mv gain drift vs. temperature 9 3 ppm/c power supply rejection 1 chop on, adc = 1 v 55 65 db chop off, adc = 1 v 53 65 db
aduc7060/aduc7061 rev. c | page 6 of 108 parameter test conditions/comments min typ max unit adc specifications: analog input internal v ref = 1.2 v main channel absolute input voltage range applies to both vin+ and vin? 0.1 v dd ? 0.7 v input voltage range gain = 1 1 0 1.2 v gain = 2 1 0 600 mv gain = 4 1 0 300 mv gain = 8 1 0 150 mv gain = 16 1 0 75 mv gain = 32 1 0 37.5 mv gain = 64 1 0 18.75 mv gain = 128 1 0 9.375 mv common mode voltage, v cm v cm = (ain(+) + ain(?))/2, gain = 4 to 128 0.5 v input leakage current 1 adc0 and adc1 10 18 1 na adc2, adc3, adc4, and adc5 15 30 1 na adc6, adc7, adc8, and adc9, vref+, vref? 15 25 1 na common-mode rejection dc 1 on adc input adc = 7.8 mv 113 db adc = 1 v 1 95 db common-mode rejection 50 hz/60 hz 1 50 hz/60 hz 1 hz, 16.6 hz and 50 hz update rate, chop on adc = 7.8 mv, range 20 mv 95 db adc = 1 v, range 1.2 v 90 db normal-mode rejection 50 hz/60 hz 1 on adc input 50 hz/60 hz 1 hz, 16.6 hz f adc , chop on 75 db 50 hz/60 hz 1 hz, 16.6 hz f adc , chop off 67 db auxiliary channel absolute input voltage range 1 buffer enabled 0.1 avdd ? 0.1 v buffer disabled agnd avdd v input voltage range range-based reference source 0 1.2 v common-mode rejection dc 1 on adc input adc = 1 v 1 87 db common-mode rejection 50 hz/60 hz 1 50 hz/60 hz 1 hz, 16.6 hz and 50 hz update rate, chop on adc = 1 v, range 1.2 v 90 db normal-mode rejection 50 hz/60 hz 1 on adc input 50 hz/60 hz 1 hz, 16.6 hz f adc , chop on 75 db 50 hz/60 hz 1 hz, 16.6 hz f adc , chop off 67 db voltage reference adc precision reference internal v ref 1.2 v initial accuracy measured at t a = 25c ?0.1 +0.1 % reference temperature coefficient (tempco) 1 , 10 ?20 10 +20 ppm/c power supply rejection 1 70 db
aduc7060/aduc7061 rev. c | page 7 of 108 parameter test conditions/comments min typ max unit external reference input range 11 0.1 avdd v v ref divide-by-2 initial error 1 0.1 % dac channel specifications r l = 5 k, c l = 100 pf voltage range 0 v ref v 0 avdd ? 0.2 v dac 12-bit mode dc specifications 12 resolution 12 bits relative accuracy 2 lsb differential nonlinearity guaranteed monotonic 0.2 1 lsb offset error 1.2 v internal reference 2 15 mv gain error v ref range (reference = 1.2 v) 1 % avdd range 1 % gain error mismatch 0.1 % of full scale on dac dac 16-bit mode 1 only monotonic to 14 bits dc specifications 13 resolution 14 bits relative accuracy for 14-bit resolution 3 lsb differential nonlinearity guaranteed monotonic (14 bits) 0.5 1 lsb offset error 1.2 v internal reference 2 15 mv gain error v ref range (reference = 1.2 v) 1 % avdd range 1 % gain error mismatch 0.1 % of full scale on dac dac ac characteristics voltage output settling time 10 s digital-to-analog glitch energy 1 lsb change at major carry (where maximum number of bits simultaneously change in the dac0dat register) 20 nv-sec temperature sensor 1 , 14 after user calibration accuracy mcu in power-down or standby mode 4 c voltage output at 0c typical value 96 mv voltage tempco typical value 0.28 mv/c thermal impedance 48-lead lfcsp 27 c/w 48-lead lqfp 55 c/w 32-lead lfcsp 30 c/w power-on reset (por) por trip level 1 refers to voltage at dvdd pin power-on level 2.0 v power-down level 2.25 v reset timeout from por maximum supply ramp between 1.8 v and 2.25 v; after por trip, dvdd must reach 2.25 v within this time limit 128 ms
aduc7060/aduc7061 rev. c | page 8 of 108 parameter test conditions/comments min typ max unit excitation current sources output current available from each current source 200 1000 a initial tolerance at 25c 5 % drift 1 0.06 %/c initial current matching at 25c matching between both current sources 0.5 % drift matching 1 20 ppm/c line regulation (avdd) 1 avdd = 2.5 v 5% 0.2 %/v output compliance 1 avdd ? 0.7 v agnd ? 30 mv v watchdog timer ( wdt ) timeout period 1 32.768 khz clock, 256 prescale 0.008 512 sec timeout step size 7.8 ms flash/ee memory 1 endurance 15 10,000 cycles data retention 16 20 years digital inputs all digital inputs except ntrst input leakage current input (high) = dvdd 1 10 a input pull-up current input (low) = 0 v 10 20 80 a input capacitance 10 pf input leakage current ntrst only: input (low) = 0 v 1 10 a input pull-down current ntrst only: input (high) = dvdd 30 55 100 a logic inputs 1 all logic inputs input low voltage (vinl) 0.4 v input high voltage (vinh) 2.0 v logic outputs 1 all logic outputs except xtalo output low voltage (vol) i source = 1.6 ma 0.6 v output high voltage (voh) i source = 1.6 ma 2.0 v crystal oscillator 1 logic inputs, xtali only input low voltage (vinl) 0.8 v input high voltage (vinh) 1.7 v xtali capacitance 12 pf xtalo capacitance 12 pf on-chip oscillators oscillator 32,768 khz accuracy ?3 +3 % mcu clock rate eight programmable core clock selections within this range: binary divisions 1, 2, 4, 8 . . . 64, 128 0.08 1.28 10.24 mhz using an external clock to p2.0/extclk pin 0.08 10.24 mhz mcu start-up time at power-on includes kernel power-on execution time 134 ms after reset event includes kernel power-on execution time 5 ms from mcu power-down pll on wake-up from interrupt cd = 0 4.8 s pll off wake-up from interrupt cd = 0 66 s internal pll lock time 1 ms
aduc7060/aduc7061 rev. c | page 9 of 108 parameter test conditions/comments min typ max unit power requirements power supply voltages dvdd (5%) 2.375 2.5 2.625 v avdd (5%) 2.375 2.5 2.625 v power consumption i dd (mcu normal mode) 17 mcu clock rate = 10.24 mhz, adc0 on 6 10 ma mcu clock rate = 640 khz, adc0 on, g = 4, adc1/dac off, spi on; powcon1 = 0x4 full temperature range 3.1 ma reduced temperature range ?40c to +85c 1 2.74 ma i dd (mcu powered down) 1 full temperature range 55 350 a reduced temperature range ?40c to +85c 55 120 a i dd (primary adc) pga enabled, normal mode/low power mode; current is dependent on gain setting 0.6/0.3 ma adc0 on, g = 1, normal mode 0.03 ma adc0 on, g = 4, normal mode 0.44 ma adc0 on, g = >128, normal mode 0.63 ma i dd (auxiliary adc) normal mode/low power mode 0.35/0.1 ma i dd (dac) dac0con = 0x10 0.33 ma pwm 0.34 ma 1 these numbers are not production tested but are guaranteed by design and/or characterization data at production release. 2 valid for primary adc gain setting of pga = 4 to 64. 3 tested at gain range = 4 afte r initial offset calibration. 4 measured with an internal short. a system zero-scale calibration removes this error. 5 measured with an internal short. 6 these numbers do not include internal reference temperature drift. 7 factory calibrated at gain = 1. 8 system calibration at a specific gain ra nge removes the error at this gain range. 9 measured using an external reference. 10 measured using the box method. 11 references up to avdd are accommodated by setting adc0con bit 12. 12 reference dac linear ity is calculated using a redu ced code range of 171 to 4095. 13 reference dac linear ity is calculated using a redu ced code range of 2731 to 65,535. 14 die temperature. 15 endurance is qualified to 10,000 cycles as per jedec std. 22 method a117 and measured at ?40c, +25c, and +125c. typical end urance at 25c is 170,000 cycles. 16 retention lifetime equivalent at junction temperature (t j ) = 85c as per jedec std. 22 me thod a117. retention lifetime de rates with junction temperature. 17 typical additional supply current consumed during flash/ee memory program and erase cycles is 7 ma and 5 ma, respectively.
aduc7060/aduc7061 rev. c | page 10 of 108 timing specifications i 2 c timing table 2. i 2 c? timing in standa rd mode (100 khz) slave parameter description min max unit t l sclock low pulse width 4.7 s t h sclock high pulse width 4.0 ns t shd start condition hold time 4.0 s t dsu data setup time 250 ns t dhd data hold time 0 3.45 s t rsu setup time for repeated start 4.7 s t psu stop condition setup time 4.0 s t buf bus-free time between a stop condit ion and a start condition 4.7 s t r rise time for both clock and sdata 1 s t f fall time for both clock and sdata 300 ns 0 7079-029 s data (i/o) t buf msb lsb ack msb 1 9 8 2?7 1 sclk (i) ps stop condition start condition s(r) repeated start t r t f t f t r t h t l t dsu t dhd t rsu t dhd t dsu t shd t psu figure 2. i 2 c compatible in terface timing
aduc7060/aduc7061 rev. c | page 11 of 108 spi timing table 3. spi master mode timing (phase mode = 1) parameter description min typ max unit t sl sclock low pulse width (spidiv + 1) t hclk ns t sh sclock high pulse width (spidiv + 1) t hclk ns t dav data output valid after sclock edge 25 ns t dsu data input setup time before sclock edge 1 1 t uclk ns t dhd data input hold time after sclock edge 1 2 t uclk ns t df data output fall time 30 40 ns t dr data output rise time 30 40 ns t sr sclock rise time 30 40 ns t sf sclock fall time 30 40 ns 1 t uclk = 97.6 ns. it corresponds to the 10.24 mhz internal clock from the pll. 0 7079-030 sclock (polarity = 0) sclock (polarity = 1) mosi msb bits 6 to 1 lsb miso msb in bits 6 to 1 lsb in t sh t sl t sr t sf t dr t df t dav t dsu t dhd figure 3. spi master mode timing (phase mode = 1) table 4. spi master mode ti ming (phase mode = 0) parameter description min typ max unit t sl sclock low pulse width (spidiv + 1) t hclk ns t sh sclock high pulse width (spidiv + 1) t hclk ns t dav data output valid after sclock edge 25 ns t dosu data output setup before sclock edge 90 ns t dsu data input setup time before sclock edge 1 1 t uclk ns t dhd data input hold time after sclock edge 1 2 t uclk ns t df data output fall time 30 40 ns t dr data output rise time 30 40 ns t sr sclock rise time 30 40 ns t sf sclock fall time 30 40 ns 1 t uclk = 97.6 ns. it corresponds to the 10.24 mhz internal clock from the pll.
aduc7060/aduc7061 rev. c | page 12 of 108 07079-031 sclock (polarity = 0) sclock (polarity = 1) t sh t sl t sr t sf mosi msb bits 6 to 1 lsb miso msb in bits 6 to 1 lsb in t dr t df t dav t dosu t dsu t dhd figure 4. spi master mode timing (phase mode = 0) table 5. spi slave mode timing (phase mode = 1) parameter description min typ max unit t cs cs to sclock edge 1 (2 t hclk ) + (2 t uclk ) ns t sl sclock low pulse width (spidiv + 1) t hclk ns t sh sclock high pulse width (spidiv + 1) t hclk ns t dav data output valid after sclock edge 40 ns t dsu data input setup time before sclock edge 1 1 t uclk ns t dhd data input hold time after sclock edge 1 2 t uclk ns t df data output fall time 30 40 ns t dr data output rise time 30 40 ns t sr sclock rise time 1 ns t sf sclock fall time 1 ns t sfs cs high after sclock edge 0 ns 1 t uclk = 97.6 ns. it corresponds to the 10.24 mhz internal clock from the pll. 07079-032 sclock (polarity = 0) cs sclock (polarity = 1) t sh t sl t sr t sf t sfs miso msb bits 6 to 1 lsb mosi msb in bits 6 to 1 lsb in t dhd t dsu t dav t dr t df t cs figure 5. spi slave mode timing (phase mode = 1)
aduc7060/aduc7061 rev. c | page 13 of 108 table 6. spi slave mode timing (phase mode = 0) parameter description min typ max unit t cs cs to sclock edge 1 (2 t hclk ) + (2 t uclk ) ns t sl sclock low pulse width (spidiv + 1) t hclk ns t sh sclock high pulse width (spidiv + 1) t hclk ns t dav data output valid after sclock edge 40 ns t dsu data input setup time before sclock edge 1 1 t uclk ns t dhd data input hold time after sclock edge 1 2 t uclk ns t df data output fall time 30 40 ns t dr data output rise time 30 40 ns t sr sclock rise time 1 ns t sf sclock fall time 1 ns t docs data output valid after cs edge 10 ns t sfs cs high after sclock edge 0 ns 1 t uclk = 97.6 ns. it corresponds to the 10.24 mhz internal clock from the pll. 07079-033 sclock (polarity = 0) cs sclock (polarity = 1) t sh t sl t sr t sf t sfs miso mosi msb in bits 6 to 1 lsb in t dhd t dsu msb bits 6 to 1 lsb t docs t dav t dr t df t cs figure 6. spi slave mode timing (phase mode = 0)
aduc7060/aduc7061 rev. c | page 14 of 108 absolute maximum ratings t a = ?40c to +125c, unless otherwise noted. table 7. parameter rating agnd to dgnd to avdd to dvdd ?0.3 v to +0.3 v digital i/o voltage to dgnd ?0.3 v to +3.3 v vref to agnd ?0.3 v to avdd + 0.3 v adc inputs to agnd ?0.3 v to avdd + 0.3 v esd (human body model) rating all pins 2 kv storage temperature 125c junction temperature transient 150c continuous 130c lead temperature soldering reflow (15 sec) 260c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. esd caution
aduc7060/aduc7061 rev. c | page 15 of 108 pin configurations and function descriptions tck tdi tdo dvdd dgnd p2.1/irq3/pwm5 p1.6/pwm4 p1.5/pwm3 p1.4/pwm2 p2.0/irq2/pwm0/extcl k p0.4/irq0/pwm1 xtalo p0.3/mosi/sda p0.2/miso dvdd p0.0/ss p0.1/sclk/scl xtali dgnd adc9 adc8 adc6 adc7 tms p1.0/irq1/sin/t0 p1.1/sout p0.5/cts p1.3/trip p1.2/sync p0.6/rts dvdd dgnd adc5/ext_ref2in ? dac0 adc4/ext_ref2in+ adc3 adc2 iexc1 iexc0 gnd_sw adc1 adc0 vref+ vref ? agnd avdd reset 07079-002 13 14 15 16 17 18 19 20 21 22 23 24 48 47 46 45 44 43 42 41 40 39 38 37 1 2 3 4 5 6 7 8 9 10 11 12 35 36 34 33 32 31 30 29 28 27 26 25 aduc7060 top view (not to scale) pin 1 indicator notes 1. the lfcsp_vq only has an exposed paddle that must be left unconnected. this does not apply to the lqfp. n t r s t / b m figure 7. 48-lead lqfp and 48-lead lfcsp_vq pin configuration table 8. aduc7060 pin function descriptions pin no. mnemonic type 1 description 0 ep exposed paddle. the lfcsp_vq only has an expo sed paddle that must be left unconnected. this does not apply to the lqfp. 1 reset i reset. input pin, active low. an external 1 k pull-up resistor is recommended with this pin. 2 tms i jtag test mode select. input pin used for debug and download. an external pull-up resistor (~100 k) should be added to this pin. 3 p1.0/irq1/sin/t0 i/o general-purpose input and general purpose outp ut p1.0/external interrupt request 1/serial input/timer0 input. this is a multifunctio n input/output pin offering four functions. 4 p1.1/sout i/o general-purpose input and general-purpose output p1.1/serial output. this is a dual function input/output pin. 5 p1.2/sync i/o general-purpose input and general-purpose output p1.2/pwm external sync input. this is a dual function input/output pin. 6 p1.3/trip i/o general-purpose input and general-purpose output p1.3/pwm external trip input. this is a dual function input/output pin. 7 p0.5/cts i/o general-purpose input and general-purpose output p0.5/clear-to-send signal in uart mode. 8 p0.6/rts i/o general-purpose input and general-purpose output p0.6/request-to-send signal in uart mode. 9 dvdd s digital supply pin. 10 dgnd s digital ground. 11 dac0 o dac output. analog output pin.
aduc7060/aduc7061 rev. c | page 16 of 108 pin no. mnemonic type 1 description 12 adc5/ext_ref2in? i single-ended or differential analog input 5/exte rnal reference negative input. this is a dual function analog input pin. adc5 serves as the analog input for the auxiliary adc. ext_ref2in? serves as the external reference negative input by adc for the auxiliary channel. 13 adc4/ext_ref2in+ i multifunction analog input pin. this pin can be used for the single-ended or differential analog input 4, which is the analog input for the auxiliary adc, or it can be used for the external reference positive input for the auxiliary channel. 14 adc3 i single-ended or differential analog input 3. analog input for the primary and auxiliary adcs. 15 adc2 i single-ended or differential analog input 2. analog input for the primary and auxiliary adcs. 16 iexc1 o programmable current source. analog output pin. 17 iexc0 o programmable current source. analog output pin. 18 gnd_sw i switch to internal analog ground reference. when this input pin is not used, connect it directly to the agnd system ground. 19 adc1 i single-ended or differential analog input 1. analog input for the primary adc. negative differential input for primary adc. 20 adc0 i single-ended or differential analog input 0. analog input for the primary adc. positive differential input for primary adc. 21 vref+ i external reference positive input for the primary channel. analog input pin. 22 vref? i external reference negative input for the primary channel. analog input pin. 23 agnd s analog ground. 24 avdd s analog supply pin. 25 adc6 i analog input 6 for auxiliary adc. single-ended or differential analog input 6. 26 adc7 i analog input 7 for auxiliary adc. single-ended or differential analog input 7. 27 adc8 i analog input 8 for auxiliary adc. single-ended or differential analog input 8. 28 adc9 i analog input 9 for auxiliary adc. single-ended or differential analog input 9. 29 dgnd s digital ground. 30 dvdd s digital supply pin. 31 p0.0/ ss i/o general-purpose input and general-purpose output p0.0/spi slave select pin (active low). this is a dual function input/output pin. 32 p0.1/sclk/scl i/o general-purpose input and general-purpose output p0.1/spi clock pin/i 2 c clock pin. this is a triple function input/output pin. 33 p0.2/miso i/o general-purpose input and general-purpose output p0.2/spi master input slave output. this is a dual function input/output pin. 34 p0.3/mosi/sda i/o general-purpose input and general-purpose ou tput p0.3/spi master output slave input/i 2 c data pin. this is a triple function input/output pin. 35 xtalo o external crystal oscillator output pin. 36 xtali i external crystal oscillator input pin. 37 p0.4/irq0/pwm1 i/o general-purpose input and general-purpose output p0.4/external interrupt request 0/pwm1 output. this is a triple function input/output pin. 38 p2.0/irq2/pwm0/extclk i/o general-purpose input and general-purpose output p2.0/external interrupt request 2/pwm0 output/external clock input. this is a multifunction input/output pin. 39 p1.4/pwm2 i/o general-purpose input and general-purpose output p1.4/pwm2 output. this is a dual function input/output pin. 40 p1.5/pwm3 i/o general-purpose input and general-purpose output p1.5/pwm3 output. this is a dual function input/output pin. 41 p1.6/pwm4 i/o general-purpose input and general-purpose output p1.6/pwm4 output. this is a dual function input/output pin. 42 p2.1/irq3/pwm5 i/o general-purpose input and general-purpose output p2.1/external interrupt request 3/pwm5 output. this is a triple function input/output pin.
aduc7060/aduc7061 rev. c | page 17 of 108 pin no. mnemonic type 1 description 43 dgnd s digital ground. 44 dvdd s digital supply pin. 45 ntrst/ bm i jtag reset/boot mode. input pin used for debug and download only and boot mode ( bm ). the aduc7060 enters serial download mode if bm is low at reset and executes code if bm is pulled high at reset through a 13 k resistor. 46 tdo o jtag data out. output pin used for debug and download only. 47 tdi i jtag data in. input pin used for debug and download only. add an external pull-up resistor (~100 k) to this pin. 48 tck i jtag clock pin. input pin used for debug and do wnload only. add an external pull-up resistor (~100 k) to this pin. 1 i = input, o = output, i/o = input/output, and s = supply.
aduc7060/aduc7061 rev. c | page 18 of 108 pin 1 indicator 1 reset 2 tms 3 p1.0/irq1/sin/t0 4 p1.1/sout 5 dac0 6 adc5/ext_ref2in ? 7 adc4/ext_ref2in+ 8 adc3 24 xtali 23 xtalo 22 p0.3/mosi/sda/adc9 21 p0.2/miso/adc8 20 p0.1/sclk/scl/adc7 19 p0.0/ss/adc6 18 vref? 17 vref+ 9 a d c 2 1 0 i e x c 1 1 1 i e x c 0 1 2 g n d _ s w 1 3 a d c 1 1 4 a d c 0 1 5 a g n d 1 6 a v d d 3 2 t c k 3 1 t d i 3 0 t d o 2 9 n t r s t / b m 2 8 d v d d 2 7 d g n d 2 6 p 2 . 0 / i r q 2 / p w m 0 2 5 p 0 . 4 / i r q 0 / p w m 1 aduc7061 top view (not to scale) 07079-003 notes 1. the 32-lead lfcsp_vq has an exposed paddle. this exposed paddle must be left unconnected. figure 8. 32-lead lfcsp pin configuration table 9. aduc7061 pin function descriptions pin no. mnemonic type 1 description 0 ep exposed paddle. the 32-lead lfcsp_vq has an exposed paddle that must be left unconnected. 1 reset i reset pin. input pin, active low. an external 1 k pull-up resistor is recommended with this pin. 2 tms i jtag test mode select. input pin used for debug and download. an external pull-up resistor (~100 k) should be added to this pin. 3 p1.0/irq1/sin/t0 i/o general-purpose input and general-purpose outp ut p1.0/external interrupt request 1/serial input/timer0 input. this is a multifunction input/output pin offering four functions. 4 p1.1/sout i/o general-purpose input and general-purpose output p1.1/serial output. this is a dual function input/output pin. 5 dac0 o dac output. analog output pin. 6 adc5/ext_ref2in? i single-ended or differential analog input 5/exte rnal reference negative input. this is a dual function analog input pin. the adc5 serves as the analog input for the auxiliary adc. the ext_ref2in? serves as the external reference ne gative input by adc for the auxiliary channel. 7 adc4/ext_ref2in+ i multifunction analog input pin. this pin can be us ed for the single-ended or differential analog input 4, which is the analog input for the auxili ary adc, or it can be used for the external reference positive input for the auxiliary channel. 8 adc3 i single-ended or differential analog inp ut 3. analog input for primary and auxiliary adcs. 9 adc2 i single-ended or differential analog inp ut 2. analog input for primary and auxiliary adcs. 10 iexc1 o programmable current source. analog output pin. 11 iexc0 o programmable current source. analog output pin. 12 gnd_sw i switch to internal analog ground reference. when this input pin is not used, connect it directly to the agnd system ground. 13 adc1 i single-ended or differential analog input 1. analog input for the primary adc. negative differential input for primary adc. 14 adc0 i single-ended or differential analog input 0. analog input for the primary adc. positive differential input for primary adc. 15 agnd s analog ground. 16 avdd s analog supply pin. 17 vref+ i external reference positive input fo r the primary channel. analog input pin. 18 vref? i external reference negative input fo r the primary channel. analog input pin. 19 p0.0/ ss /adc6 i/o general-purpose input and general-purpose output p0.0/spi slave select (active low)/input to auxiliary adc6. this is a multifunction input/ou tput pin. single-ended or differential analog input 6. analog input for the auxiliary adc. 20 p0.1/sclk/scl/adc7 i/o general-purpose input and general-purpose output p0.1/spi clock/i 2 c clock/input to auxiliary adc7. this is a multifunction in put/output pin. single-ended or differential analog input 7. analog input for the auxiliary adc.
aduc7060/aduc7061 rev. c | page 19 of 108 pin no. mnemonic type 1 description 21 p0.2/miso/adc8 i/o general-purpose input and general-purpos e output p0.2/spi master input slave output/auxiliary adc8 input. this is a triple function input/output pin. single-ended or differential analog input 8. analog input for the auxiliary adc. 22 p0.3/mosi/sda/adc9 i/o general-purpose input and general-purpose ou tput p0.3/spi master output slave input/i 2 c data pin/auxiliary adc9 input. this is a mu ltifunction input/output pin. single-ended or differential analog input 9. analog input for the auxiliary adc. 23 xtalo o external crystal oscillator output pin. 24 xtali i external crystal oscillator input pin. 25 p0.4/irq0/pwm1 i/o general-purpose input and general-purpose ou tput p0.4/external interrupt request 0/pwm1 output. this is a triple function input/output pin. 26 p2.0/irq2/pwm0 i/o general-purpose input and general-purpose ou tput p2.0/external interrupt request 2/pwm0 output. this is a triple function input/output pin. 27 dgnd s digital ground. 28 dvdd s digital supply pin. 29 ntrst/ bm i jtag reset/boot mode. input pin used for debug and download only and boot mode ( bm ). the aduc7061 enters serial download mode if bm is low at reset and executes code if bm is pulled high at reset through a 13 k resistor. 30 tdo o jtag data out. output pin used for debug and download only. 31 tdi i jtag data in. input pin used for debug and download only. add an external pull-up resistor (~100 k) to this pin. 32 tck i jtag clock. input pin used for debug and download only. add an external pull-up resistor (~100 k) to this pin. 1 i = input, o = output, i/o = input/output, and s = supply.
aduc7060/aduc7061 rev. c | page 20 of 108 terminology conversion rate the conversion rate specifies the rate at which an output result is available from the adc, when the adc has settled. the sigma-delta (-) conversion techniques used on this part mean that whereas the adc front-end signal is oversampled at a relatively high sample rate, a subsequent digital filter is used to decimate the output, giving a valid 24-bit data conversion result at output rates from 1 hz to 8 khz. note that, when software switches from one input to another (on the same adc), the digital filter must first be cleared and then allowed to average a new result. depending on the con- figuration of the adc and the type of filter, this can take multiple conversion cycles. integral nonlinearity (inl) inl is the maximum deviation of any code from a straight line passing through the endpoints of the transfer function. the end- points of the transfer function are zero scale, a point ? lsb below the first code transition, and full scale, a point ? lsb above the last code transition (111 . . . 110 to 111 . . . 111). the error is expressed as a percentage of full scale. no missing codes no missing codes is a measure of the differential nonlinearity of the adc. the error is expressed in bits and specifies the number of codes (adc results) as 2n bits, where n is no missing codes guaranteed to occur through the full adc input range. offset error offset error is the deviation of the first code transition adc input voltage from the ideal first code transition. offset error drift offset error drift is the variation in absolute offset error with respect to temperature. this error is expressed as least significant bits per degree celsius. gain error gain error is a measure of the span error of the adc. it is a measure of the difference between the measured and the ideal span between any two points in the transfer function. output noise the output noise is specified as the standard deviation (or 1 sigma) of the distribution of the adc output codes collected when the adc input voltage is at a dc voltage. it is expressed as micro root mean square. the output, or root mean square (rms) noise, can be used to calculate the effective resolution of the adc as defined by the following equation: effective resolution = log2( full-scale range/ rms noise ) bits the peak-to-peak noise is defined as the deviation of codes that fall within 6.6 sigma of the distribution of adc output codes collected when the adc input voltage is at dc. the peak-to-peak noise is, therefore, calculated as 6.6 rms noise the peak-to-peak noise can be used to calculate the adc (noise free code) resolution for which there is no code flicker within a 6.6-sigma limit as defined by the following equation: noise free code resolution = log2 ? ? ? ? ? ? ? ? ?? ? noisepeaktopeak rangescalefull bits data sheet acronyms adc analog-to-digital converter arm advanced risc machine jtag joint test action group lsb least significant byte/bit lvf low voltage flag mcu microcontroller mmr memory mapped register msb most significant byte/bit pid protected identifier por power-on reset psm power supply monitor rms root mean square
aduc7060/aduc7061 rev. c | page 21 of 108 overview of the arm7tdmi core the arm7? core is a 32-bit, reduced instruction set computer (risc), developed by arm? ltd. the arm7tdmi is a von neumann-based architecture, meaning that it uses a single 32-bit bus for instruction and data. the length of the data can be 8, 16, or 32 bits, and the length of the instruction word is either 16 bits or 32 bits, depending on the mode in which the core is operating. the arm7tdmi is an arm7 core with four additional features, as listed in table 10 . table 10. arm7tdmi features feature description t support for the thumb? (16-bit) instruction set d support for debug m enhanced multiplier i includes the embeddedice? module to support embedded system debugging thumb mode (t) an arm instruction is 32 bits long. the arm7tdmi processor supports a second instruction set compressed into 16 bits, the thumb instruction set. faster code execution from 16-bit memory and greater code density is achieved by using the thumb instruc- tion set, making the arm7tdmi core particularly suited for embedded applications. however, the thumb mode has three limitations. ? relative to arm, the thumb code usually requires more instructions to perform the same task. therefore, arm code is best for maximizing the performance of time- critical code in most applications. ? the thumb instruction set does not include some instructions that are needed for exception handling, so arm code can be required for exception handling. ? when an interrupt occurs, the core vectors to the interrupt location in memory and executes the code present at that address. the first command is required to be in arm code. multiplier (m) the arm7tdmi instruction set includes an enhanced multiplier, with four extra instructions to perform 32-bit by 32-bit multiplication with a 64-bit result, and 32-bit by 32-bit multiplication-accumulation (mac) with a 64-bit result. embeddedice (i) the embeddedice module provides integrated on-chip debug support for the arm7tdmi. the embeddedice module contains the breakpoint and watchpoint registers that allow nonintrusive user code debugging. these registers are con- trolled through the jtag test port. when a breakpoint or watchpoint is encountered, the processor halts and enters the debug state. when in a debug state, the processor registers can be interrogated, as can the flash/ee, sram, and memory mapped registers. arm7 exceptions the arm7 supports five types of exceptions, with a privileged processing mode associated with each type. the five types of exceptions are as follows: type 1: normal interrupt or irq. this is provided to service general-purpose interrupt handling of internal and external events. note that the aduc706x supports eight configurable priority levels for all irq sources. type 2: fast interrupt or fiq. this is provided to service data transfer or a communication channel with low latency. fiq has priority over irq. note that the aduc706x supports eight configurable priority levels for all fiq sources. type 3: memory abort (prefetch and data). type 4: attempted execution of an undefined instruction. type 5: software interrupts (swi) instruction that can be used to make a call to an operating system. typically, the programmer defines interrupts as irq, but for higher priority interrupts, the programmer can define interrupts as the fiq type. the priority of these exceptions and vector addresses are listed in table 11 . table 11. exception priorities and vector addresses priority exception address 1 hardware reset 0x00 2 memory abort (data) 0x10 3 fiq 0x1c 4 irq 0x18 5 memory abort (prefetch) 0x0c 6 software interrupt 1 0x08 6 undefined instruction 1 0x04 1 a software interrupt and an undefined instruction exception have the same priority and are mutually exclusive. the exceptions listed in table 11 are located from 0x00 to 0x1c, with a reserved location at 0x14. arm registers the arm7tdmi has 16 standard registers. r0 to r12 are for data manipulation, r13 is the stack pointer, r14 is the link register, and r15 is the program counter that indicates the instruction currently being executed. the link register contains the address from which the user has branched (when using the branch and link command) or the command during which an exception occurred. the stack pointer contains the current location of the stack. generally, on an arm7tdmi, the stack starts at the top of the available ram area and descends using the area as required. a separate stack is defined for each of the exceptions. the size of each stack is user configurable and is dependent on the target application. when programming using high level languages,
aduc7060/aduc7061 rev. c | page 22 of 108 such as c, it is necessary to ensure that the stack does not overflow. this is dependent on the performance of the compiler that is used. when an exception occurs, some of the standard registers are replaced with registers specific to the exception mode. all exception modes have replacement banked registers for the stack pointer (r13) and the link register (r14) as represented in figure 9 . the fiq mode has more registers (r8 to r12) supporting faster interrupt processing. with the increased number of noncritical registers, the interrupt can be processed without the need to save or restore these registers, thereby reducing the response time of the interrupt handling process. more information relative to the programmers model and the arm7tdmi core architecture can be found in arm7tdmi technical and arm architecture manuals available directly from arm ltd. usable in user mode system modes only spsr_und spsr_irq spsr_abt spsr_svc r8_fiq r9_fiq r10_fiq r11_fiq r12_fiq r13_fiq r14_fiq r13_und r14_und r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 (pc) r13_irq r14_irq r13_abt r14_abt r13_svc r14_svc spsr_fiq cpsr user mode fiq mode svc mode abort mode irq mode undefined mode 07079-004 figure 9. register organization interrupt latency the worst-case latency for an fiq consists of the longest time that the request can take to pass through the synchronizer, plus the time for the longest instruction to complete (the longest instruction is an ldm) that loads all the registers including the pc, plus the time for the data abort entry, plus the time for fiq entry. at the end of this time, the arm7tdmi is executing the instruction at 0x1c (fiq interrupt vector address). the maximum total time is 50 processor cycles, or just over 4.88 s in a system using a continuous 10.24 mhz processor clock. the maximum irq latency calculation is similar but must allow for the fiq having higher priority, which can delay entry into the irq handling routine for an arbitrary length of time. this time can be reduced to 42 cycles if the ldm command is not used; some compilers have an option to compile without using this command. another option is to run the part in thumb mode where this time is reduced to 22 cycles. the minimum latency for fiq or irq interrupts is five cycles. this consists of the shortest time that the request can take through the synchronizer plus the time to enter the exception mode. note that the arm7tdmi initially (first instruction) runs in arm (32-bit) mode when an exception occurs. the user can immediately switch from arm mode to thumb mode if required, for example, when executing interrupt service routines. memory organization the arm7, a von neumann architecture mcu core, sees memory as a linear array of 232-byte locations. as shown in figure 10 , the aduc706x maps this into four distinct user areas: a memory area that can be remapped, an sram area, a flash/ee area, and a memory mapped register (mmr) area. the first 30 kb of this memory space is used as an area into which the on-chip flash/ee or sram can be remapped. any access, either reading or writing, to an area not defined in the memory map results in a data abort exception. memory format the aduc706x memory organization is configured in little endian format: the least significant byte is located in the lowest byte address and the most significant byte in the highest byte address (see figure 11 ). 0x00040fff 0x00040000 0xffffffff 0xffff0000 mmrs 0x00087fff 0x00080000 flash/ee sram 0x00007fff 0x00000000 remappable memory space (flash/ee or sram) reserved reserved reserved 07079-005 figure 10. memory map bit 31 byte 2 a 6 2 . . . byte 3 b 7 3 . . . byte 1 9 5 1 . . . byte 0 8 4 0 . . . bit 0 32 bits 0xffffffff 0x00000004 0x00000000 0 7079-006 figure 11. little endian format sram the aduc706x features 4 kb of sram, organized as 1024 32 bits, that is, 1024 words located at 0x40000. the ram space can be used as data memory as well as volatile program space. arm code can run directly from sram at full clock speed given that the sram array is configured as a 32-bit wide memory array. sram is read/writable in 8-, 16-, and 32-bit segments. remap the arm exception vectors are all situated at the bottom of the memory array, from address 0x00000000 to address 0x00000020.
aduc7060/aduc7061 rev. c | page 23 of 108 by default, after a reset, the flash/ee memory is logically mapped to address 0x00000000. it is possible to logically remap the sram to address 0x00000000 by setting bit 0 of the remap mmr located at 0xffff0220. to revert flash/ee to 0x00000000, bit 0 of remap is cleared. it is sometimes desirable to remap ram to 0x00000000 to optimize the interrupt latency of the aduc706x because code can run in full 32-bit arm mode and at maximum core speed. note that, when an exception occurs, the core defaults to arm mode. remap operation when a reset occurs on the aduc706x, execution starts automati- cally in the factory programmed internal configuration code. this so-called kernel is hidden and cannot be accessed by user code. if the aduc706x is in normal mode, it executes the power- on configuration routine of the kernel and then jumps to the reset vector, address 0x00000000, to execute the users reset exception routine. because the flash/ee is mirrored at the bottom of the memory array at reset, the reset routine must always be written in flash/ee. the remap command must be executed from the absolute flash/ee address and not from the mirrored, remapped segment of memory, because this may be replaced by sram. if a remap operation is executed while operating code from the mirrored location, pre- fetch/data aborts can occur, or the user can observe abnormal program operation. any kind of reset logically remaps the flash/ee memory to the bottom of the memory array. remap register name: remap address: 0xffff0220 default value: 0x0000 access: read and write function: this 8-bit register allows user code to remap either ram or flash/ee space into the bottom of the arm memory space starting at address 0x00000000. table 12. remap mmr bit designations bit description 7:1 reserved. these bits are reserved and should be written as 0 by user code. 0 remap bit. set by user to remap the sram to 0x00000000. cleared automatically after reset to remap the flash/ee memory to 0x00000000. flash/ee control interface serial and jtag programming use the flash/ee control interface, which includes the eight mmrs outlined in this section. note that the flash page size is 512 bytes. feesta register feesta is a read-only register that reflects the status of the flash control interface as described in table 13 . name: feesta address: 0xffff0e00 default value: 0x0020 access: read table 13. feesta mmr bit designations bit description 15:6 reserved. 5 reserved. 4 reserved. 3 flash interrupt status bit. set automatically when an interrupt occurs, that is, when a command is complete and the flash/ee interrupt enable bit in the feemod register is set. cleared when reading the feesta register. 2 flash/ee controller busy. set automatically when the controller is busy. cleare d automatically when the controller is not busy. 1 command fail. set automatically when a command completes unsuccessfully. cleared automatically when reading the feesta register. 0 command pass. set by the microconverter? when a command completes successfully. cleared automatically when reading the feesta register. feemod register feemod sets the operating mode of the flash control interface. table 14 lists feemod mmr bit designations. name: feemod address: 0xffff0e04 default value: 0x0000 access: read and write table 14. feemod mmr bit designations bit description 15:9 reserved. 8 reserved. always set this bit to 1. 7:5 reserved. always set these bits to 0 except when writing keys. 4 flash/ee interrupt enable. set by user to enable the flash/ee interrupt. the interrupt occurs when a command is complete. cleared by user to disable the flash/ee interrupt. 3 erase/write command protection. set by user to enable the erase and write commands. cleared to protect the flash/ee against the erase/write command. 2:0 reserved. always set these bits to 0.
aduc7060/aduc7061 rev. c | page 24 of 108 feecon register feecon is an 8-bit command register. the commands are described in table 15 . name: feecon address: 0xffff0e08 default value: 0x07 access: read and write table 15. command codes in feecon code command description 0x00 1 null idle state. 0x01 1 single read load feedat with the 16-bit data. indexed by feeadr. 0x02 1 single write write feedat at the address point ed to by feeadr. this operation takes 50 s. 0x03 1 erase/write erase the page indexed by feeadr and write feedat at th e location pointed to by feeadr. this operation takes approximately 24 ms. 0x04 1 single verify compare the contents of the location pointed to by feeadr to the data in feedat. the result of the comparison is returned in feesta bit 0 and bit 1. 0x05 1 single erase erase the page indexed by feeadr. 0x06 1 mass erase erase 30 kb of user space. the 2 kb of kernel are protected. to prevent accidental execution, a command sequence is required to execute this instruction. see the command sequence for executing a mass erase section. 0x07 reserved reserved. 0x08 reserved reserved. 0x09 reserved reserved. 0x0a reserved reserved. 0x0b signature this command results in a 24-bit lfsr-based signatur e being generated and loaded into the feesign mmr. this operation takes 16,389 clock cycles. 0x0c protect this command can run only once. the value of feepro is saved and is remo ved only with a mass erase (0x06) or the key. 0x0d reserved reserved. 0x0e reserved reserved. 0x0f ping no operation; interrupt generated. 1 the feecon register always reads 0x07 immediat ely after execution of any of these commands.
aduc7060/aduc7061 rev. c | page 25 of 108 feedat register feedat is a 16-bit data register. this register holds the data value for flash read and write commands. name: feedat address: 0xffff0e0c default value: 0xxxxx access: read and write feeadr register feeadr is a 16-bit address register used for accessing individual pages of the 32 kb flash block. the valid address range for a user is: 0x0000 to 0x77ff. this represents the 30 kb flash user memory space. a read or write access outside this boundary causes a data abort exception to occur. name: feeadr address: 0xffff0e10 default value: 0x0000 access: read and write feesign register the feesign register is a 24-bit mmr. this register is updated with the 24-bit signature value after the signature command is executed. this value is the result of the linear feedback shift register (lfsr) operation initiated by the signature command. name: feesign address: 0xffff0e18 default value: 0xffffff access: read feepro register the feepro mmr provides protection following a subsequent reset of the mmr. it requires a software key (see table 16 ). name: feepro address: 0xffff0e1c default value: 0x00000000 access: read and write feehide register the feehide mmr provides immediate protection. it does not require any software key. note that the protection settings in feehide are cleared by a reset (see table 16 ). name: feehide address: 0xffff0e20 default value: 0xffffffff access: read and write table 16. feepro and feehide mmr bit designations bit description 31 read protection. cleared by user to protect all code. no jtag read accesses for protected pages if this bit is cleared. set by the user to allow reading the code via jtag. 30 protection for page 59 (0x00087600 to 0x000877ff). set by the user to allow writ ing to page 59. cleared to protect page 59. 29 protection for page 58 (0x00087400 to 0x000875ff). set by the user to allow writ ing to page 58. cleared to protect page 58. 28:0 write protection for page 57 to page 0. each bit represents two pages. each page is 512 bytes in size. bit 0 is protection for page 0 and page 1 (0x00080000 to 0x000803ff). set by the user to allow writing page 0 and page 1. cleared to protect page 0 and page 1. bit 1 is protection for page 2 and page 3 (0x00080400 to 0x000807ff. set by the user to allow writing page 2 and page 3. cleared to protect page 2 and page 3. bit 27 is protection for page 54 and page 55 (0x00087000 to 0x000873ff). set by the user to allow writing to page 54 and page 55. cleared to protect page 54 and page 55. bit 28 is protection for page 56 and page 57 (0x00087400 to 0x000877ff). set by the user to allow writing to page 56 and page 57. cleared to protect page 56 and page 57. temporary protection temporary protection can be set and removed by writing directly into the feehid mmr. this register is volatile and, therefore, protection is only in place for as long as the part remains powered on. the protection setting is not reloaded after a power cycle. keyed permanent protection keyed permanent protection can be set via feepro to lock the protection configuration. the software key used at the start of the required feepro write sequence is saved one time only and must be used for any subsequent access of the feehid or feepro mmrs. a mass erase sets the software protection key back to 0xffff but also erases the entire user code space.
aduc7060/aduc7061 rev. c | page 26 of 108 permanent protection permanent protection can be set via feepro, similar to how keyed permanent protection is set, with the only difference being that the software key used is 0xdeaddead. when the feepro write sequence is saved, only a mass erase sets the software protection key back to 0xffffffff. this also erases the entire user code space. sequence to write the software protection key and set permanent protection 1. write in feepro corresponding to the pages to be protected. 2. write the new (user-defined) 32-bit software protection key in feeadr (bits[31:16]) and feedat (bits[15:0]). 3. write 10 in feemod (bits[6:5]) and set feemod (bit 3). 4. run the protect command (code 0x0c) in feecon. to remove or modify the protection, the same sequence can be used with a modified value of feepro. the previous sequence for writing the key and setting permanent protection is illustrated in the following example, this protects writing page 4 and page 5 of the flash/ee: int a = feesta; // ensure feesta is cleared feepro = 0xfffffffb; // protect page 4 and page 5 feeadr = 0x66bb; // 32-bit key value (bits[31:16]) feedat = 0xaa55; // 32-bit key value (bits[15:0]) feemod = 0x0048 // lock security sequence feecon = 0x0c; // write key command while (feesta & 0x04){} // wait for command to finish command sequence for executing a mass erase feedat = 0x3cff; feeadr = 0x77c3; feemod = feemod|0x8; //erase key enable feecon = 0x06; //mass erase command
aduc7060/aduc7061 rev. c | page 27 of 108 pwm 0xffff0fc0 0xfffffff f 0xffff0f80 flash control interface 0xffff0e24 0xffff0e00 gpio 0xffff0d50 0xffff0d00 spi 0xffff0a14 0xffff0a00 i 2 c 0xffff0948 0xffff0900 uart 0xffff0730 0xffff0700 dac 0xffff0620 0xffff0600 adc 0xffff0570 0xffff0500 band gap reference 0xffff0490 0xffff048c spi/i 2 c selection 0xffff0470 0xffff0450 pll and oscillator control 0xffff0420 0xffff0404 general-purpose timer 0xffff0394 0xffff0380 watchdog timer 0xffff0370 0xffff0360 wake-up timer 0xffff0350 0xffff0340 general-purpose timer 0xffff0334 0xffff0320 remap and system control 0xffff0238 0xffff0220 interrupt controller 0xffff0140 0xffff0000 07079-007 memory mapped registers the memory mapped register (mmr) space is mapped into the upper two pages of the memory array and is accessed by indirect addressing through the arm7 banked registers. the mmr space provides an interface between the cpu and all on-chip peripherals. all registers, except the core registers, reside in the mmr area. all shaded locations shown in figure 12 are unoccupied or reserved locations and should not be accessed by user software. figure 12 shows the full mmr memory map. the access time for reading from or writing to an mmr depends on the advanced microcontroller bus architecture (amba) bus used to access the peripheral. the processor has two amba buses: the advanced high performance bus (ahb) used for system modules and the advanced peripheral bus (apb) used for a lower performance peripheral. access to the ahb is one cycle, and access to the apb is two cycles. all peripherals on the aduc706x are on the apb except for the flash/ee memory, the gpios, and the pwm. figure 12. memory mapped registers
aduc7060/aduc7061 rev. c | page 28 of 108 complete mmr listing in the following mmr tables, addresses are listed in hexadecimal code. access types include r for read, w for write, and r/w fo r read and write. table 17. irq address base = 0xffff0000 address name bytes access type default value description 0x0000 irqsta 4 r 0x00000000 active irq source status. 0x0004 irqsig 4 r current state of all irq sources (enabled and disabled). 0x0008 irqen 4 r/w 0x00000000 enabled irq sources. 0x000c irqclr 4 w 0x00000000 mmr to disable irq sources. 0x0010 swicfg 4 w 0x00000000 software interrupt configuration mmr. 0x0014 irqbase 4 r/w 0x00000000 base address of all vectors. points to the start of the 64-byte memory block, which can contain up to 32 pointers to separate subroutine handlers. 0x001c irqvec 4 r 0x00000000 this register contains the subroutine address for the currently active irq source. 0x0020 irqp0 4 r/w 0x00000000 contains the interrupt priority setting for interrupt source 1 to interrupt source 7. an interrupt can have a priority setting of 0 to 7. 0x0024 irqp1 4 r/w 0x00000000 contains the interrupt priority setting for interrupt source 8 to interrupt source 15. 0x0028 irqp2 4 r/w 0x00000000 contains the interrupt priority se tting for interrupt source 16 to interrupt source 19. 0x0030 irqconn 4 r/w 0x00000000 used to enable irq and fiq interrupt nesting. 0x0034 irqcone 4 r/w 0x00000000 configures the external interrupt sour ces as rising edge, falling edge, or level triggered. 0x0038 irqclre 4 r/w 0x00000000 used to clear an edge-level-triggered interrupt source. 0x003c irqstan 4 r/w 0x00000000 this register indicates the priority level of an interrupt that has just caused an interrupt exception. 0x0100 fiqsta 4 r 0x00000000 active fiq source status. 0x0104 fiqsig 4 r current state of all fiq sources (enabled and disabled). 0x0108 fiqen 4 r/w 0x00000000 enabled fiq sources. 0x010c fiqclr 4 w 0x00000000 mmr to disable fiq sources. 0x011c fiqvec 4 r 0x00000000 this register contains the subroutine address for the currently active fiq source. 0x013c fiqstan 4 r/w 0x00000000 indicates the priority level of an fiq that has just caused an fiq exception. table 18. system control address base = 0xffff0200 address name bytes access type default value description 0x0220 remap 1 1 r/w 0x00 remap control register. see the remap operation section. 0x0230 rststa 1 r/w 0x01 rststa status mmr. see the reset section. 0x0234 rstclr 1 w 0x00 register for clearing the rststa register. 1 updated by the kernel.
aduc7060/aduc7061 rev. c | page 29 of 108 table 19. timer address base = 0xffff0300 address name bytes access type default value description 0x0320 t0ld 4 r/w 0x00000000 timer0 load register. 0x0324 t0val 4 r 0xffffffff timer0 value register. 0x0328 t0con 4 r/w 0x01000000 timer0 control mmr. 0x032c t0clri 1 w n/a timer0 interrupt clear register. 0x0330 t0cap 4 r 0x00000000 timer0 capture register. 0x0340 t1ld 4 r/w 0x00000000 timer1 load register. 0x0344 t1val 4 r 0xffffffff timer1 value register. 0x0348 t1con 2 r/w 0x0000 timer1 control mmr. 0x034c t1clri 1 w n/a timer1 interrupt clear register. 0x0360 t2ld 2 r/w 0x0040 timer2 load register. 0x0364 t2val 2 r 0x0040 timer2 value register. 0x0368 t2con 2 r/w 0x0000 timer2 control mmr. 0x036c t2clri 1 w n/a timer2 interrupt clear register. 0x0380 t3ld 2 r/w 0x0000 timer3 load register. 0x0384 t3val 2 r 0xffff timer3 value register. 0x0388 t3con 4 r/w 0x00000000 timer3 control mmr. 0x038c t3clri 1 w n/a timer3 interrupt clear register. 0x0390 t3cap 2 r 0x0000 timer3 capture register. table 20. pll base address = 0xffff0400 address name bytes access type default value description 0x0404 powkey1 2 w 0xxxxx powcon0 prewrite key. 0x0408 powcon0 1 r/w 0x7b power control and core speed control register. 0x040c powkey2 2 w 0xxxxx powcon0 postwrite key. 0x0410 pllkey1 2 w 0xxxxx pllcon prewrite key. 0x0414 pllcon 1 r/w 0x00 pll clock source selection mmr. 0x0418 pllkey2 2 w 0xxxxx pllcon postwrite key. 0x0434 powkey3 2 w 0xxxxx powcon1 prewrite key. 0x0438 powcon1 2 r/w 0x124 power control register. 0x043c powkey4 2 w 0xxxxx powcon1 postwrite key. 0x0464 gp0key1 2 w 0xxxxx gp0con1 prewrite key. 0x0468 gp0con1 1 r/w 0x00 configures p0.0, p0.1, p0.2, and p0.3 as analog inputs or digital i/os. also enables spi or i 2 c mode. 0x046c gp0key2 2 w 0xxxxx gp0con1 postwrite key.
aduc7060/aduc7061 rev. c | page 30 of 108 table 21. adc address base = 0xffff0500 address name bytes access type default value description 0x0500 adcsta 2 r 0x0000 adc status mmr. 0x0504 adcmski 2 r/w 0x0000 adc inte rrupt source enable mmr. 0x0508 adcmde 1 r/w 0x03 adc mode register. 0x050c adc0con 2 r/w 0x8000 primary adc control mmr. 0x0510 adc1con 2 r/w 0x0000 auxiliary adc control mmr. 0x0514 adcflt 2 r/w 0x0007 adc filter control mmr. 0x0518 adccfg 1 r/w 0x00 adc configuration mmr. 0x051c adc0dat 4 r 0x00000000 primary adc result mmr. 0x0520 adc1dat 4 r 0x00000000 auxiliary adc result mmr 0x0524 adc0of 1 2 r/w 0x0000, part specific, factory programmed primary adc offset calibration setting. 0x0528 adc1of 1 2 r/w 0x0000, part specific, factory programmed auxiliary adc offset mmr. 0x052c adc0gn 1 2 r/w 0x5555 primary adc offset mmr. 0x0530 adc1gn 1 2 r/w 0x5555 auxiliary adc offset mmr. see the adc operation mode configuration bit (adclpmcfg[1:0]) in table 42 . 0x0534 adc0rcr 2 r/w 0x0001 primary adc result counter/reload mmr. 0x0538 adc0rcv 2 r 0x0000 primary adc result counter mmr. 0x053c adc0th 2 r/w 0x0000 primary adc 16-bit comparator threshold mmr. 0x0540 adc0thc 2 r/w 0x0001 primary adc 16-bit comparator threshold counter limit. 0x0544 adc0thv 2 r 0x0000 adc0 8-bit thre shold exceeded counter register 0x0548 adc0acc 4 r 0x00000000 primary adc accumulator. 0x054c adc0ath 4 r/w 0x00000000 primary adc 32-bit comparator threshold mmr. 0x0570 iexcon 1 r/w 0x00 excitation current sources control register. 1 updated by the kernel to part specific calibration value. table 22. dac control address base = 0xffff0600 address name bytes access type default value description 0x0600 dac0con 2 r/w 0x0200 dac control register. 0x0604 dac0dat 4 r/w 0x00000000 dac output data register. table 23. uart base address = 0xffff0700 address name bytes access type default value description 0x0700 comtx 1 w n/a uart transmit register. 0x0700 comrx 1 r 0x00 uart receive register. 0x0700 comdiv0 1 r/w 0x00 uart standard baud rate generator divisor value 0. 0x0704 comien0 1 r/w 0x00 uart interrupt enable mmr 0. 0x0704 comdiv1 1 r/w 0x00 uart standard baud rate generator divisor value 1. 0x0708 comiid0 1 r 0x01 uart interrupt identification 0. 0x070c comcon0 1 r/w 0x00 uart control register 0. 0x0710 comcon1 1 r/w 0x00 uart control register 1. 0x0714 comsta0 1 r 0x60 uart status register 0. 0x0718 comsta1 1 r 0x00 uart status register 1. 0x072c comdiv2 2 r/w 0x0000 uart fractional divider mmr.
aduc7060/aduc7061 rev. c | page 31 of 108 table 24. i 2 c base address = 0xffff0900 address name bytes access type default value description 0x0900 i2cmcon 2 r/w 0x0000 i 2 c master control register. 0x0904 i2cmsta 2 r 0x0000 i 2 c master status register. 0x0908 i2cmrx 1 r 0x00 i 2 c master receive register. 0x090c i2cmtx 1 w 0x00 i 2 c master transmit register. 0x0910 i2cmcnt0 2 r/w 0x0000 i 2 c master read count register. write the number of required bytes into this register prior to reading from a slave device. 0x0914 i2cmcnt1 1 r 0x00 i 2 c master current read count register. this register contains the number of bytes already received during a read from slave sequence. 0x0918 i2cadr0 1 r/w 0x00 address byte register. write the required slave address here prior to communications. 0x091c i2cadr1 1 r/w 0x00 address byte register. write the required slave address here prior to communications. only used in 10-bit mode. 0x0924 i2cdiv 2 r/w 0x1f1f i 2 c clock control register. used to configure the sclk frequency. 0x0928 i2cscon 2 r/w 0x0000 i 2 c slave control register. 0x092c i2cssta 2 r/w 0x0000 i 2 c slave status register. 0x0930 i2csrx 1 r 0x00 i 2 c slave receive register. 0x0934 i2cstx 1 w 0x00 i 2 c slave transmit register. 0x0938 i2calt 1 r/w 0x00 i 2 c hardware general call recognition register. 0x093c i2cid0 1 r/w 0x00 i 2 c slave id0 register. slave bus id register. 0x0940 i2cid1 1 r/w 0x00 i 2 c slave id1 register. slave bus id register. 0x0944 i2cid2 1 r/w 0x00 i 2 c slave id2 register. slave bus id register. 0x0948 i2cid3 1 r/w 0x00 i 2 c slave id3 register. slave bus id register. 0x094c i2cfsta 2 r/w 0x0000 i 2 c fifo status register. used in both master and slave modes. table 25. spi base address = 0xffff0a00 address name bytes access type default value description 0x0a00 spista 4 r 0x00000000 spi status mmr. 0x0a04 spirx 1 r 0x00 spi receive mmr. 0x0a08 spitx 1 w 0x00 spi transmit mmr. 0x0a0c spidiv 1 w 0x1b spi baud rate select mmr. 0x0a10 spicon 2 r/w 0x0000 spi control mmr. table 26. gpio base address = 0xffff0d00 address name bytes access type default value description 0x0d00 gp0con0 4 r/w 0x00000000 gpio port 0 control mmr. 0x0d04 gp1con 4 r/w 0x00000000 gpio port 1 control mmr. 0x0d08 gp2con 4 r/w 0x00000000 gpio port 2 control mmr. 0x0d20 gp0dat 4 r/w 0x000000xx gpio port 0 data control mmr. 0x0d24 gp0set 4 w 0x000000xx gpio port 0 data set mmr. 0x0d28 gp0clr 4 w 0x000000xx gpio port 0 data clear mmr. 0x0d2c gp0par 4 r/w 0x00000000 gpio port 0 pull-up disable mmr. 0x0d30 gp1dat 4 r/w 0x000000xx gpio port 1 data control mmr. 0x0d34 gp1set 4 w 0x000000xx gpio port 1 data set mmr. 0x0d38 gp1clr 4 w 0x000000xx gpio port 1 data clear mmr. 0x0d3c gp1par 4 r/w 0x00000000 gpio port 1 pull-up disable mmr. 0x0d40 gp2dat 4 r/w 0x000000xx gpio port 2 data control mmr. 0x0d44 gp2set 4 w 0x000000xx gpio port 2 data set mmr. 0x0d48 gp2clr 4 w 0x000000xx gpio port 2 data clear mmr. 0x0d4c gp2par 4 r/w 0x00000000 gpio port 2 pull-up disable mmr.
aduc7060/aduc7061 rev. c | page 32 of 108 table 27. flash/ee base address = 0xffff0e00 address name bytes access type default value description 0x0e00 feesta 2 r 0x20 flash/ee status mmr. 0x0e04 feemod 2 r/w 0x0000 flash/ee control mmr. 0x0e08 feecon 1 r/w 0x07 flash/ee control mmr. 0x0e0c feedat 2 r/w 0x xxxx flash/ee data mmr. 0x0e10 feeadr 2 r/w 0x0000 flash/ee address mmr. 0x0e18 feesign 3 r 0xffffff flash/ee lfsr mmr. 0x0e1c feepro 4 r/w 0x00000000 flash/ee protection mmr. 0x0e20 feehide 4 r/w 0xffffffff flash/ee protection mmr. table 28. pwm base address = 0xffff0f80 address name bytes access type default value description 0x0f80 pwmcon 2 r/w 0x0012 pwm control register. see the pulse-width modulator section for full details. 0x0f84 pwm0com0 2 r/w 0x0000 compare regist er 0 for pwm output 0 and pwm output 1. 0x0f88 pwm0com1 2 r/w 0x0000 compare regist er 1 for pwm output 0 and pwm output 1. 0x0f8c pwm0com2 2 r/w 0x0000 compare regist er 2 for pwm output 0 and pwm output 1. 0x0f90 pwm0len 2 r/w 0x0000 frequency cont rol for pwm output 0 and pwm output 1. 0x0f94 pwm1com0 2 r/w 0x0000 compare regist er 0 for pwm output 2 and pwm output 3. 0x0f98 pwm1com1 2 r/w 0x0000 compare regist er 1 for pwm output 2 and pwm output 3. 0x0f9c pwm1com2 2 r/w 0x0000 compare regist er 2 for pwm output 2 and pwm output 3. 0x0fa0 pwm1len 2 r/w 0x0000 frequency cont rol for pwm output 2 and pwm output 3. 0x0fa4 pwm2com0 2 r/w 0x0000 compare register 0 for pwm output 4 and pwm output 5. 0x0fa8 pwm2com1 2 r/w 0x0000 compare register 1 for pwm output 4 and pwm output 5. 0x0fac pwm2com2 2 r/w 0x0000 compare register 2 for pwm output 4 and pwm output 5. 0x0fb0 pwm2len 2 r/w 0x0000 frequency cont rol for pwm output 4 and pwm output 5. 0x0fb8 pwmclri 2 w 0x0000 pwm interrupt clear register. writing any value to this register clears a pwm interrupt source.
aduc7060/aduc7061 rev. c | page 33 of 108 reset there are four kinds of resets: external reset, power-on reset, watchdog reset, and software reset. the rststa register indicates the source of the last reset and can be written by user code to initiate a software reset event. the bits in this register can be cleared to 0 by writing to the rstclr mmr at 0xffff0234. the bit designations in rstclr mirror those of rststa. these registers can be used during a reset exception service routine to identify the source of the reset. the implications of all four kinds of reset events are tabulated in table 30 . rststa register name: rststa address: 0xffff0230 default value: depends on type of reset access: read and write function: this 8-bit register indicates the source of the last reset event and can be written by user code to initiate a software reset. rstclr register name: rstclr address: 0xffff0234 access: write only function: this 8-bit write only register clears the corres- ponding bit in rststa. table 29. rststa/rstclr mmr bit designations bit description 7:4 not used. these bits are not used and always read as 0. 3 external reset. automatically set to 1 when an external reset occurs. this bit is cleared by setting the corresponding bit in rstclr. 2 software reset. this bit is set to 1 by user code to generate a soft- ware reset. this bit is cleared by setting the corresponding bit in rstclr. 1 1 watchdog timeout. automatically set to 1 when a watchdog timeout occurs. cleared by setting the corresponding bit in rstclr. 0 power-on reset. automatically set when a power-on reset occurs. cleared by setting the corresponding bit in rstclr. 1 if the software reset bit in rststa is set, any write to rstclr that does not clear this bit generates a software reset. table 30. device reset implications reset reset external pins to default state kernel executed reset all external mmrs (excluding rststa) peripherals reset watchdog timer reset ram valid rststa (status after reset event) por yes yes yes yes yes yes/no rststa[0] = 1 watchdog yes yes yes yes no yes rststa[1] = 1 software yes yes yes yes no yes rststa[2] = 1 external pin yes yes yes yes no yes rststa[3] = 1
aduc7060/aduc7061 rev. c | page 34 of 108 oscillator, pll, and power control clocking system the aduc706x integrates a 32.768 khz 3% oscillator, a clock divider, and a pll. the pll locks onto a multiple of the inter- nal oscillator or an external 32.768 khz crystal to provide a stable 10.24 mhz clock (uclk) for the system. to allow power saving, the core can operate at this frequency or at binary submultiples of it. the actual core operating frequency, uclk/2 cd , is refered to as hclk. the default core clock is the pll clock divided by 8 (cd = 3) or 1.28 mhz. pll core cd 10.24mhz 32.768khz *32.768khz 3% hclk uclk oclk watchdog timer wake-up timer int. 32khz oscillator* crystal oscillator xclko xclki analog peripherals /2 cd i 2 c 07079-008 p2.0/extclk figure 13. clocking system external crystal selection to switch to an external crystal, users must follow this procedure: 1. enable the timer1 interrupt and configure it for a timeout period of >120 s. 2. follow the write sequence to the pllcon register, setting the osel bits to [10] and clearing the extclk bit. 3. force the part into nap mode by following the correct write sequence to the powcon register. 4. when the part is interrupted from nap mode by the timer1 interrupt source, the clock source has switched to the external crystal. example source code t1ld = 0x80; // 32,768 clock ticks t1con = 0xc0; // periodic mode, enable // timer, 32,768 hz clock/1 irqen |= 0x10; // enable timer1 interrupt // source pllkey1 = 0xaa; // switch to external crystal pllcon = 0x2; pllkey2 = 0x55; powkey1 = 0x1; // enter nap mode powcon0 = 0x73; powkey2 = 0xf4; in case of crystal loss, the watchdog timer should be used. during initialization, a test on the rststa can determine if the reset came from the watchdog timer. external clock selection to switch to an external clock on p2.0, configure p2.0 in mode 0. the external clock can be up to 20.48 mhz, provided that the toler- ance is 1%. the external clock is divided by 2 internally on the part. example source code t1ld = 0x80; t1con = 0xc0; irqen |= 0x10; // enable timer1 interrupt pllkey1 = 0xaa; // switch to external clock pllcon = 0x4; pllkey2 = 0x55; powkey1 = 0x1; // enter nap mode powcon0 = 0x73; powkey2 = 0xf4; the selection of the clock source is in the pllcon register. by default, the part uses the internal oscillator feeding the pll. power control system the core clock frequency is changed by writing to the powcon0 register. this is a key protected register; therefore, register powkey1 and register powkey2 must be written to immediately before and after configuring the powcon0 register. the following is a simple example showing how to configure the core clock for 10.24 mhz: powkey1 = 0x1; powcon0 = 0x78; //set core to max cpu //speed of 10.24 mhz powkey2 = 0xf4; a choice of operating modes is available on the aduc706x. table 33 describes what part is powered on in the different modes and indicates the power-up time. table 34 gives some typical values for the total current consumption (analog + digital supply currents) in the different modes, depending on the clock divider bits. the adc is turned off. note that these values also include the current consumption of the regulator and other parts on the test board where these values are measured.
aduc7060/aduc7061 rev. c | page 35 of 108 by writing to powcon1, it is possible to further reduce power consumption in active mode by powering down the uart, pwm or i 2 c/spi blocks. to access powcon1, powkey3 must be set to 0x76 in the instruction immediately before accessing powcon1 and powkey4 must be set to 0xb1 in the instruction immediately after. for example, the following code enables the spi/i 2 c blocks but, powers down the pwm and uart blocks. powkey3 =0x76; powcon1 =0x4; //0x100 pwm; 0x20 uart; 0x4 spi/i2c powkey4 =0xb1; power and clock control registers name: powkey1 address: 0xffff0404 default value: 0xxxxx access: write function: when writing to powcon0, the value of 0x01 must be written to this register in the instruction immediately before writing to powcon0. name: powcon0 address: 0xffff0408 default value: 0x7b access: read and write function: this register controls the clock divide bits controlling the cpu clock (hclk). table 31. powcon0 mmr bit designations bit name description 7 reserved this bit must always be set to 0. 6 xpd xtal power-down. cleared by user to power down the external crystal circuitry. set by user to enable the external crystal circuitry. 5 pllpd pll power-down. timer peripherals power down if driven from the pll output clock. timers driven from an active clock source remain in normal power mode. this bit is cleared to 0 to power down the pll. the pll canno t be powered down if either the core or peripherals are enabled; bit 3, bit 4, and bit 5 must be cleared simultaneously. set by default, and set by hardware on a wake-up event. 4 ppd peripherals power-down. the peripherals that are powered down by this bit are as follows: sram, flash/ee memory and gpio interfaces, and spi/i 2 c and uart serial ports. cleared to power down the peripherals. the peripherals cannot be powered down if the core is enabled; bit 3 and bit 4 must be cleared simultaneously. set by default and/or by hardware on a wake-up event. wake-up timer (timer1) can remain active. 3 corepd core power-down. if user code powers down the mcu, include a dummy mcu cycle after the power-down command is written to powcon0. cleared to power down the arm core. set by default and set by hardware on a wake-up event. 2:0 cd[2:0] core clock depends on cd setting: [000] = 10.24 mhz [001] = 5.12 mhz [010] = 2.56 mhz [011] = 1.28 mhz [default value] [100] = 640 khz [101] = 320 khz [110] = 160 khz [111] = 80 khz
aduc7060/aduc7061 rev. c | page 36 of 108 name: powkey1 address: 0xffff0404 default value: 0xxxxx access: write function: when writing to powcon0, the value of 0x01 must be written to this register in the instruction immediately before writing to powcon0. name: powkey2 address: 0xffff040c default value: 0xxxxx access: write function: when writing to powcon0, the value of 0xf4 must be written to this register in the instruction immediately after writing to powcon0. name: powkey3 address: 0xffff0434 default value: 0xxxxx access: write function: when writing to powcon1, the value of 0x76 must be written to this register in the instruction immediately after writing to powcon1. name: powcon1 address: 0xffff0438 default value: 0x124 access: read and write function: this register controls the clock signal to the pwm, uart and i2c/spi blocks. by disabling the clock to these blocks, power consumption is reduced. table 32. powcon1 mmr bit designations bit name description 15:9 reserved this bit must always be set to 0. 8 pwmoff pwm power-down bit. set by user to 1 to enable the pwm block. this bit is set by default. cleared by user to 0 to power down the pwm block. 7:6 reserved reserved bits. always clear these bits to 0. 5 uartoff uart power-down bit. set by user to 1 to enable the uart block. this bit is set by default. cleared by user to 0 to power down the uart block. 4:3 reserved reserved bits. always clear these bits to 0. 2 i2cspioff i2c/spi power-down bit. set by user to 1 to enable the i2c/sp i blocks. this bit is set by default. cleared by user to 0 to power down the i2c/spi blocks. 1:0 reserved reserved bits. always clear these bits to 0. name: powkey4 address: 0xffff043c default value: 0xxxxx access: write function: when writing to powcon1, the value of 0xb1 must be written to this register in the instruction immediately after writing to powcon1.
aduc7060/aduc7061 rev. c | page 37 of 108 table 33. aduc706x power saving modes powcon0[6:3] mode core peripherals pll xtal/t 2/t3 irq0 to irq3 start-up/power-on time 1111 active yes yes yes yes yes 130 ms at cd = 0 1110 pause yes yes yes yes 4.8 s at cd = 0; 660 s at cd = 7 1100 nap yes yes yes 4.8 s at cd = 0; 660 s at cd = 7 1000 sleep yes yes 66 s at cd = 0; 900 s at cd = 7 0000 stop yes 66 s at cd = 0; 900 s at cd = 7 table 34. typical current consumption at 25c in ma 1 powcon0[6:3] mode cd = 0 cd = 1 cd = 2 cd = 3 cd = 4 cd = 5 cd = 6 cd = 7 1111 active 2 5.22 4.04 2.69 2.01 1.67 1.51 1.42 1.38 1110 pause 3 2.6 1.95 1.6 1.49 1.4 1.33 1.31 1.3 1100 nap 3 1.33 1.29 1.29 1.29 1.29 1.29 1.29 1.29 1000 sleep 3 0.085 0.085 0.085 0.085 0.085 0.085 0.085 0.085 0000 stop 3 0.055 0.055 0.055 0.055 0.055 0.055 0.055 0.055 1 all values listed in table 34 have been taken with both adcs turned off. 2 in active mode, gp0par bit 7 =1. 3 the values for pause, nap, sleep, and stop modes are measured with the ntrst pin low. to minimize i dd due to ntrst in all modes, set gp0par bit 7 =1. this disables the internal pull-down on the ntrst pin and means there is no ground path for the external pull-up resistor through the ntrst p in. by default, gp0par bit 7 = 0, therefore, setting this bit in user code will not affect the bm operation. name: pllkey1 address: 0xffff0410 default value: 0xxxxx access: write function: when writing to the pllcon register, the value of 0xaa must be written to this register in the instruction immediately before writing to pllcon. name: pllcon address: 0xffff0414 default value: 0x00 access: read and write function: this register selects the clock input to the pll. table 35. pllcon mmr bit designations bit name description 7:3 reserved these bits must always be set to 0. 2 extclk set this bit to 1 to sele ct external clock input from p2.0. clear this bit to disable the external clock. 1:0 osel oscillator selection bits. [00] = internal 32,768 hz oscillator. [01] = internal 32,768 hz oscillator. [10] = external crystal. [11] = internal 32,768 hz oscillator. name: pllkey2 address: 0xffff0418 default value: 0xxxxx access: write function: when writing to pllcon, the value of 0x55 must be written to this register in the instruction immediately after writing to pllcon.
aduc7060/aduc7061 rev. c | page 38 of 108 adc circuit information iexc0 iexc1 adc2 adc3 adc4 adc5 adc6 adc7 adc8 adc9 gnd_sw 50? buf - ? modulator programmable filter - ? modulator programmable filter overrange interface and control chop mux chop mux agnd temperature sensor integrator accumulator conversion counter comparators to arm 0.2hz to 8khz 0.5hz to 8khz dac buf internal reference avdd aux_refp aux_refm 0.2ma to 1ma pga 50a o/c detect v ref? v ref+ avdd adc0 adc1 dac0 07079-009 figure 14. analog block diagram the aduc706x incorporates two independent multichannel - adcs. the primary adc is a 24-bit, 4-channel adc. the auxiliary adc is a 24-bit - adc, with up to seven single- ended input channels. the primary adc input has a mux and a programmable gain amplifier on its input stage. the mux on the primary channel can be configured as two fully differential input channels or as four single-ended input channels. the auxiliary adc incorporates a buffer on its input stage. digital filtering is present on both adcs, which allows measurement of a wide dynamic range and low frequency signals such as those in pressure sensor, temperature sensor, weigh scale, or strain gage type applications. the aduc706x auxiliary adc can be configured as four fully differential input channels or as seven single-ended input channels. because of internal buffering, the internal channels can convert signals directly from sensors without the need for external signal conditioning.
aduc7060/aduc7061 rev. c | page 39 of 108 table 36. primary adctypical output rms noise in normal mode (v) input voltage noise (mv) adc register status data update rate 1.2 v (pga = 1) 600 mv (pga = 2) 300 mv (pga = 4) 150 mv (pga = 8) 75 mv (pga = 16) 37.5 mv (pga = 32) 18.75 mv (pga = 64) 9.375 mv (pga = 128) 4.68 mv (pga = 256) 2.34 mv (pga = 512) chop on 4 hz 0.62 v 0.648 v 0.175 v 0.109 v 0. 077 v 0. 041 v 0.032 v 0.0338 v 0.032 v 0.033 v chop off 50 hz 1.97 v 1.89 v 0.570 v 0.38 v 0.27 v 0.147 v 0.123 v 0.12 v 0.098 v 0.098 v chop off 1 khz 8.54 v 8.4 v 2.55 v 1.6 v 1.17 v 0.658 v 0.53 v 0.55 v 0.56 v 0.52 v chop off 8 khz 54.97 v 55.54 v 14.30 v 7.88 v 4.59 v 2.5 v 1.71 v 1.75 v 0.915 v 0.909 v table 37. primary adctypical output rms effective number of bits in normal mo de (peak-to-peak bits in parentheses) input voltage noise (mv) adc register status data update rate 1.2 v (pga = 1) 600 mv (pga = 2) 300 mv (pga = 4) 150 mv (pga = 8) 75 mv (pga = 16) 37.5 mv (pga = 32) 18.75 mv (pga = 64) 9.375 mv (pga = 128) 4.68 mv (pga = 256) 2.34 mv (pga = 512) chop on 4 hz 21.9 (19.1 p-p) 20.8 (18.1 p-p) 21.7 (19.0 p-p) 21.4 (18.7 p-p) 20.9 (18.2 p-p) 20.8 (18.1 p-p) 20.2 (17.4 p-p) 19.1 (16.4 p-p) 18.2 (15.4 p-p) 17.1 (14.4 p-p) chop off 50 hz 20.2 (17.5 p-p) 19.3 (16.6 p-p) 20.0 (17.3 p-p) 19.6 (16.9 p-p) 19.1 (16.4 p-p) 19.0 (16.2 p-p) 18.2 (15.5 p-p) 17.3 (14.6 p-p) 16.6 (13.8 p-p) 15.5 (12.8 p-p) chop off 1 khz 18.1 (15.3 p-p) 17.1 (14.4 p-p) 17.8 (15.1 p-p) 17.5 (14.8 p-p) 17.0 (14.2 p-p) 16.8 (14.1 p-p) 16.1 (13.4 p-p) 15.1 (12.3 p-p) 14.0 (11.3 p-p) 13.1 (10.4 p-p) chop off 8 khz 15.4 (12.7 p-p) 14.4 (11.7 p-p) 15.4 (12.6 p-p) 15.2 (12.5 p-p) 15.0 (12.3 p-p) 14.9 (12.2 p-p) 14.4 (11.7 p-p) 13.4 (10.7 p-p) 13.3 (10.6 p-p) 12.3 (9.6 p-p) table 38. auxilary adctypical output rms noise similarly, if an external reference source of greater than 1.35 v is used for adc1, the highextref1 bit must be set in adc1con. data update rate adc register rms value chop on 4 hz 0.633 v diagnostic current sources chop on 10 hz 0.810 v to detect a connection failure to an external sensor, the aduc706x incorporates a 50 a constant current source on the selected analog input channels to both the primary and auxiliary adcs. chop off 1 khz 7.4 v chop off 8 khz 54.18 v reference sources the diagnostic current sources for the primary adc analog inputs are controlled by the adc0diag[1:0] bits in the adc0con register. both the primary and auxiliary adcs have the option of using the internal reference voltage or one of two external differential reference sources. the first external reference is applied to the vref+/vref? pins. the second external reference is applied to the adc4/ext_ref2in+ and adc5/ext_ref2in? pins. by default, each adc uses the internal 1.2 v reference source. similarly, the diagnostic current sources for the auxiliary adc analog inputs are controlled by the adc1diag[1:0] bits in the adc1con register. adc1 (?) adc0 (+) avdd r1 ab r2 ab vin = adc0, adc1 07079-010 for details on how to configure the external reference source for the primary adc, see the description of the adc0ref[1:0] bits in the adc0 control register, adc0con. for details on how to configure the external reference source for the auxiliary adc, see the description of the adc1ref[2:0] bits in the adc1 control register, adc1con. if an external reference source of greater than 1.35 v is needed for adc0, the highextref0 bit must be set in adc0con. figure 15. example circuit using diagnostic current sources
aduc7060/aduc7061 rev. c | page 40 of 108 table 39. example scenarios for using diagnostic current sources diagnostic test register setting description normal result fault result detected measurement for fault adc0diag[1:0] = 0 convert adc0/adc1 as normal with diagnostic currents disabled. expected differential result across adc0/adc1. short circuit. primary adc reading 0 v regardless of pga setting. enable a 50 a diagnostic current source on adc0 by setting adc0diag[1:0] = 1. convert adc0 and adc1. main adc changes by v = +50 a r1. for example, ~100 mv for r1 = 2 k. short circuit between adc0 and adc1. short circuit between r1_a and r1_b. primary adc reading 0 v regardless of pga setting. adc0diag[1:0] = 1 convert adc0 in single-ended mode with diagnostic currents disabled. expected voltage on adc0. adc0 open circuit or r1 open circuit. primary adc reading = +full scale, even on the lowest pga setting. adc0diag[1:0] = 3 enable a 50 a diagnostic current source on both adc0 and adc1 by setting adc0diag[1:0] = 3. convert adc0 and adc1. primary adc changes by v = 50 a (r1 ? r2), that is, ~10 mv for 10% tolerance. r1 does not match r2. primary adc reading > 10 mv. sinc3 filter the number entered into bits[6:0] of the adcflt register sets the decimation factor of the sinc3 filter. see table 46 and tabl e 47 for further details on the decimation factor values. the range of operation of the sinc3 filter (sf) word depends on whether the chop function is enabled. with chopping disabled, the minimum sf word allowed is 3 and the maximum is 127, giving an adc throughput range of 50 hz to 2 khz. for details on how to calculate the adc sampling frequency based on the value programmed to the sf[6:0] bits in the adcflt register, refer to table 46 . adc chopping the adcs on the aduc706x implements a chopping scheme whereby the adc repeatedly reverses its inputs. therefore, the decimated digital output values from the sinc3 filter have a positive and negative offset term associated with them. this results in the adc including a final summing stage that sums and averages each value from the filter with previous filter output values. this new value is then sent to the adc data mmr. this chopping scheme results in excellent dc offset and offset drift specifications and is extremely beneficial in applications where drift and noise rejection are required. programmable gain amplifier the primary adc incorporates an on-chip programmable gain amplifier (pga). the pga can be programmed through 10 different settings giving a range of 1 to 512. the gain is controlled by the adc0pga[3:0] bits in the adc0con mmr. excitation sources the aduc706x contains two matched software configurable current sources. these excitation currents are sourced from avdd. they are individually configurable to give a current range of 200 a to 1 ma. the current step sizes are 200 a. these current sources can be used to excite an external resistive bridge or rtd sensors. the iexcon mmr controls the excitation current sources. bit 6 of iexcon must be set to enable excitation current source 0. similarly, bit 7 must be set to enable excitation current source 1. the output current of each current source is controlled by the iout[3:0] bits of this register. it is also possible to configure the excitation current sources to output current to a single output pin, either iexc0 or iexc1, by using the iexc0_dir and iexc1_dir bits of iexcon. this allows up to 2 ma to output current on a single excitation pin. adc low power mode the aduc706x allows the primary and auxiliary adcs to be placed in low power operating mode. when configured for this mode, the adc throughput time is reduced, but the power consumption of the primary adc is reduced by a factor of about 4; the auxiliary adc power consumption is reduced by a factor of roughly 3. the maximum adc conversion rate in low power mode is 2 khz. the operating mode of the adcs is controlled by the adcmde register. this register configures the part for either normal mode (default), low power mode, or low power plus mode. low power plus mode is the same as low power mode except that the pga is disabled. to place the adcs into low power mode, the following steps must be completed: ? adcmde[4:3]setting these bits enables normal mode, low power mode, or low power plus mode. ? adcmde[5]setting this bit configures the part for low power mode. ? adcmde[7]clearing this bit further reduces power consumption by reducing the frequency of the adc clock.
aduc7060/aduc7061 rev. c | page 41 of 108 adc comparator and accumulator adc mmr interface every primary adc result can be compared to a preset threshold level (adc0th) as configured via adccfg[4:3]. an mcu interrupt is generated if the absolute (sign independent) value of the adc result is greater than the preprogrammed comparator threshold level. an extended function of this comparator function allows user code to configure a threshold counter (adc0thv) to monitor the number of primary adc results that have occurred above or below the preset threshold level. again, an adc interrupt is generated when the threshold counter reaches a preset value (adc0rcr). the adcs are controlled and configured through a number of mmrs that are described in detail in the following sections. in response to an adc interrupt, user code should interrogate the adcsta mmr to determine the source of the interrupt. each adc interrupt source can be individually masked via the adcmski mmr described in table 41 . all primary adc result ready bits are cleared by a read of the adc0dat mmr. if the primary channel adc is not enabled, all adc result ready bits are cleared by a read of the adc1dat mmr. to ensure that primary adc and auxiliary adc conversion data are synchronous, user code should first read the adc1dat mmr and then the adc0dat mmr. new adc conversion results are not written to the adcxdat mmrs unless the respective adc result ready bits are first cleared. the only exception to this rule is the data conversion result updates when the arm core is powered down. in this mode, adcxdat registers always contain the most recent adc conversion result even though the ready bits are not cleared. finally, a 32-bit accumulator (adc0acc) function can be configured (adccfg[6:5]) allowing the primary adc to add (or subtract) multiple primary adc sample results. user code can read the accumulated value directly (adc0acc) without any further software processing. temperature sensor the aduc706x provides a voltage output from an on-chip band gap reference proportional to absolute temperature. this voltage output can also be routed through the front-end auxiliary adc multiplexer (effectively, an additional adc channel input), facilitating an internal temperature sensor channel that measures die temperature. adc status register name: adcsta address: 0xffff0500 the internal temperature sensor is not designed for use as an absolute ambient temperature calculator. it is intended for use as an approximate indicator of the temperature of the aduc706x die. default value: 0x0000 access: read only the typical temperature coefficient is 0.28 mv/c. function: this read-only register holds general status information related to the mode of operation or current status of the aduc706x adcs. 07079-034 adc output (mv) 140 120 100 80 60 40 20 0 ?60 ?40 ?20 0 20 40 temperature (c) 60 80 140 100 120 figure 16. adc output vs. temperature
aduc7060/aduc7061 rev. c | page 42 of 108 table 40. adcsta mmr bit designations bit name description 15 adccalsta adc calibration status. this bit is set automatically in hardware to indica te that an adc calibration cycle has been completed. this bit is cleared after adcmde is written to. 14 not used. this bit is reserved for future functionality. 13 adc1cerr auxiliary adc conversion error. this bit is set automatically in hardware to indicate that an auxiliary adc conversion overrange or underrange has occurred. the conversion result is clamped to negative fu ll scale (underrange error) or positive full scale (overrange error) in this case. this bit is cleared when a valid (in-range) voltage conversion result is written to the adc1dat register. 12 adc0cerr primary adc conversion error. this bit is set automatically in hardware to indicate th at a primary adc conversion overrange or underrange has occurred. the conversion result is clamped to negative fu ll scale (underrange error) or positive full scale (overrange error) in this case. this bit is cleared when a valid (in-range) conv ersion result is written to the adc0dat register. 11:7 not used. these bits are reserved for future func tionality and should not be monitored by user code. 6 adc0athex adc0 accumulator comparator threshold exceeded. this bit is set when the adc0 accumulator value in ad c0acc exceeds the threshold value programmed in the adc0 comparator threshold register, adc0ath. this bit is cleared when the value in ad c0acc does not exceed the value in adc0ath. 5 not used. this bit is reserved for future functi onality and should not be monitored by user code. 4 adc0thex primary channel adc comparator threshold. this bit is vali d only if the primary channel adc comparator is enabled via the adccfg mmr. this bit is set by hardware if the absolute value of the pr imary adc conversion result exceeds the value written in the adc0th mmr. if the adc threshold counter is used (adc0rcr ), this bit is set only when the specified number of primary adc conversions equals the value in the adc0thv mmr. otherwise, this bit is cleared. 3 adc0ovr primary channel adc overrange bit. if the overrange detect fu nction is enabled via the adcc fg mmr, this bit is set by hardware if the primary adc input is grossly (>30% approxima te) overrange. this bit is updated every 125 s. after it is set, this bit can be cleared only by software when adcc fg[2] is cleared to disable the function, or the adc gain is changed via the adc0con mmr. 2 not used. this bit is reserved for future functi onality and should not be monitored by user code. 1 adc1rdy auxiliary adc result ready bit. if the auxiliary channel adc is enabled, this bit is set by hardware as soon as a valid conversion result is written in the adc1dat mmr. it is also set at the end of a calibration sequence. this bit is cleared by reading adc1dat followed by reading adc0dat. adc0dat must be read to clear this bit, even if the primary adc is not enabled. 0 adc0rdy primary adc result ready bit. if the primary channel adc is enabled, this bit is set by hardware as soon as a valid conversion result is written in the adc0dat mmr. it is also set at the end of a calibration sequence. this bit is cleared by reading adc0dat.
aduc7060/aduc7061 rev. c | page 43 of 108 adc interrupt mask register name: adcmski address: 0xffff0504 default value: 0x0000 access: read and write function: this register allows the adc interrupt sources to be enabled individually. the bit positions in this register are the same as the lower eight bits in the adcsta mmr. if a bit is set by user code to 1, the respective interrupt is enabled. by default, all bits are 0, meaning all adc interrupt sources are disabled. table 41. adcmski mmr bit designations bit name description 7 not used. this bit is reserved for future functi onality and should not be monitored by user code. 6 adc0athex_inten adc0 accumulator comparator threshold exceeded interrupt enable bit. when set to 1, this bit enable s an interrupt when the adc0athex bit in the adcsta register is set. when this bit is cleared, th is interrupt source is disabled. 5 not used. this bit is reserved for future functi onality and should not be monitored by user code. 4 adc0thex_inten primary channel adc comparator threshold exceeded interrupt enable bit. when set to 1, this bit enable s an interrupt when the adc0thex bit in the adcsta register is set. when this bit is cleared, th is interrupt source is disabled. 3 adc0ovr_inten when set to 1, this bit enables an interr upt when the adc0ovr bit in the adcsta register is set. when this bit is cleared, th is interrupt source is disabled. 2 not used. this bit is reserved for future functi onality and should not be monitored by user code. 1 adc1rdy_inten auxiliary adc result ready bit. when set to 1, this bit enables an interrupt when the adc1rdy bit in the adcsta register is set. when this bit is cleared, th is interrupt source is disabled. 0 adc0rdy_inten primary adc result ready bit. when set to 1, this bit enables an interrupt when the adc0rdy bit in the adcsta register is set. when this bit is cleared, th is interrupt source is disabled. adc mode register name: adcmde address: 0xffff0508 default value: 0x03 access: read and write function: the adc mode mmr is an 8-bit register that configures the mode of operation of the adc subsystem. table 42. adcmde mmr bit designations bit name description 7 adcclksel set this bit to 1 to enable adcclk = 512 kh z. this bit should be set for normal adc operation. clear this bit to enable adcclk = 131 khz. this bit should be cleared for low power adc operation. 6 not used. this bit is reserved for future functi onality and should not be monitored by user code. 5 adclpmen enable low power mode. this bit has no ef fect if adcmde[4:3] = 00 (adc is in normal mode). this bit must be set to 1 in low power mode. clearing this bit in low power mode results in erratic adc results.
aduc7060/aduc7061 rev. c | page 44 of 108 bit name description 4:3 adclpmcfg[1:0] adc power mode configuration. [00] = adc normal mode. if enabled, the adc operate s with normal current consumption yielding optimum electrical performance. [01] = adc low power mode. [10] = adc normal mode, same as [00]. [11] = adc low power plus mode (low power mode and pga off ). 2:0 adcmd[2:0] adc operation mode configuration. [000] = adc power-down mode. all adc circui ts and the input amplifier are powered down. [001] = adc continuous conversion mode. in this mode, any enabled adc continuously converts at a frequency equal to f adc . adcxrdy must be cleared to enable new data to be written to adc0dat/adc1dat. [010] = adc single conversion mode. in this mode, any enabled adc performs a single conversion. the adc enters idle mode when the single shot conversion is complete. a single conversion takes two to three adc clock cycles, depending on the chop mode. [011] = adc idle mode. in this mode, the adc is fully powere d on but is held in reset. the part enters this mode after calibration. [100] = adc self-offset calibration. in this mode, an offset calibration is performed on any enabled adc using an internally generated 0 v. the calibration is carried out at the user-programmed adc settings; therefore, as with a normal single adc conversion, it takes two to three adc conversion cycles before a fully settled calibration result is ready. the calibration result is au tomatically written to the adcxof mmr of the respective adc. the adc returns to idle mode, and the calibration and conversion ready status bits are set at the end of an offset calibration cycle. note: always use adc0 for single-ended self-calibrati on cycles on the primary adc. always use adc0/adc1 when self-calibrating for a differential input to the primary adc. [101] = adc self-gain calibration. in this mode, a gain calibration against an internal reference voltage is performed on all enabled adcs. a gain calibration is a two-stage process and takes twice the time of an offset calibration. the calibration result is automatically written to the adcxgn mmr of the respective adc. the adc returns to idle mode and the calibration and conversion re ady status bits are set at the end of a gain calibration cycle. an adc self-gain calibration should only be carried out on the primary channel adc. note that self-gain calibration works only when the gain = 1; do not use it when the gain > 1. [110] = adc system zero-scale calibration. in this mode , a zero-scale calibration is performed on enabled adc channels against an external zero-scale voltage driven at the adc input pins. to do this, short the channel externally. [111] = adc system full-scale calibration. in this mode , a full-scale calibration is performed on enabled adc channels against an external full-scale voltage driven at the adc input pins. the adcxgn register is updated after a full-scale calibration sequence. primary adc control register name: adc0con address: 0xffff050c default value: 0x8000 access: read and write function: the primary channel adc control mmr is a 16-bit register. if the primary adc is reconfigured via adc0con, the auxiliary adc is also reset.
aduc7060/aduc7061 rev. c | page 45 of 108 table 43. adc0con mmr bit designations bit name description 15 adc0en primary channel adc enable. this bit is set to 1 by user code to enable the primary adc. clearing this bit to 0 powers down the primary adc and resets the respective adc ready bit in the adcsta mmr to 0. 14:13 adc0diag[1:0] diagnostic current source enable bits. [00] = current sources off. [01] = enables a 50 a current source on the selected positive input (for example, adc0). [10] = enables a 50 a current source on the selected negative input (for example, adc1). [11] = enables a 50 a current source on both selected inputs (for ex ample, adc0 and adc1). 12 highextref0 this bit must be set high if the external reference for adc0 exceeds 1.35 v. this results in the reference source being divided by 2. clear this bit when using the internal reference or an external reference of less than 1.35 v. 11 amp_cm this bit is set to 1 by user to se t the pga output common-mode voltage to avdd/2. this bit is cleared to 0 by user code to set the pga output common-mode voltage to the pga input common- mode voltage level. 10 adc0code primary channel adc output coding. this bit is set to 1 by user code to co nfigure primary adc output coding as unipolar. this bit is cleared to 0 by user code to conf igure primary adc output coding as twos complement. 9:6 adc0ch[3:0] primary channel adc input select. [0000] = adc0/adc1 (differential mode). [0001] = adc0/adc5 (single-ended mode). [0010] = adc1/adc5 (single-ended mode). [0011] = vref+, vref?. note: this is the reference selected by the adc0ref bits. [0100] = not used. this bit combination is reserved for future functionality an d should not be written. [0101] = adc2/adc3 (differential mode). [0110] = adc2/adc5 (single-ended mode). [0111] = adc3/adc5 (single-ended mode). [1000] = internal short to adc1. [1001] = internal short to adc1. 5:4 adc0ref[1:0] primary channel adc reference select. [00] = internal reference selected. in adc low power mode, the voltage reference selection is controlled by adcmde[5]. [01] = external reference inputs (vref+, vref?) sele cted. set the highextref0 bit if the reference voltage exceeds 1.3 v. [10] = auxiliary external reference inputs (adc4/ext_ref2in+, adc5/ext_ref2in?) selected. set the highextref0 bit if the reference voltage exceeds 1.3 v. [11] = (avdd, agnd) divide-by-two selected. 3:0 adc0pga[3:0]. primary channel adc gain select. note, nomin al primary adc full-scale input voltage = (vref/gain). [0000] = adc0 gain of 1. buffer of negative input is bypassed. [0001] = adc0 gain of 2. [0010] = adc0 gain of 4 (default value). enables the in-amp. [0011] = adc0 gain of 8. [0100] = adc0 gain of 16. [0101] = adc0 gain of 32. [0110] = adc0 gain of 64 (maximum pga gain setting). [0111] = adc0 gain of 128 (extra gain implemented digitally). [1000] = adc0 gain of 256. [1001] = adc0 gain of 512. [1xxx] = adc0 gain is undefined.
aduc7060/aduc7061 rev. c | page 46 of 108 auxiliary adc control register name: adc1con address: 0xffff0510 default value: 0x0000 access: read and write function: the auxiliary adc control mmr is a 16-bit register. table 44. adc1con mmr bit designations bit name description 15 adc1en auxiliary channel adc enable. this bit is set to 1 by user code to enable the auxiliary adc. clearing this bit to 0 powers down the auxiliary adc. 14:13 adc1diag[1:0] diagnostic current source enable bits . this is the same current source as that used on adc0diag[1:0]. the adcs cannot enable the diagnostic cu rrent sources at the same time. [00]= current sources off. [01] = enables a 50 a current source on selected positive input (for example, adc2). [10] = enables a 50 a current source on se lected negative input (for example, adc3). [11] = enables a 50 a current source on both selected inputs (for example, adc2 and adc3). 12 highextref1 this bit must be set high if the external reference for adc1 exceeds 1.35 v. this results in the reference source being divided by 2. clear this bit when using the internal reference or an external reference of less than 1.35 v. 11 adc1code auxiliary channel adc output coding. this bit is set to 1 by user code to conf igure auxiliary adc output coding as unipolar. this bit is cleared to 0 by user code to conf igure auxiliary adc output coding as twos complement. 10:7 adc1ch[3:0] auxiliary channel adc input select. note: single-ended channels are selected with respect to adc5. bias adc5 to a minimum level of 0.1 v. [0000] = adc2/adc3 (differential mode). [0001] = adc4/adc5 (differential mode). [0010] = adc6/adc7 (differential mode). [0011] = adc8/adc9 (differential mode). [0100] = adc2/adc5 (single-ended mode). [0101] = adc3/adc5 (single-ended mode). [0110] = adc4/adc5 (single-ended mode). [0111] = adc6/adc5 (single-ended mode). [1000] = adc7/adc5 (single-ended mode). [1001] = adc8/adc5 (single-ended mode). [1010] = adc9/adc5 (single-ended mode). [1011] = internal temperature sensor+/internal temperature sensor?. [1100] = vref+, vref?. note: this is the reference selected by the adc1ref bits. [1101] = dac_out/agnd. [1110] = undefined. [1111] = internal short to adc3.
aduc7060/aduc7061 rev. c | page 47 of 108 bit name description 6:4 adc1ref[2:0] auxiliary channel adc reference select. [000] = internal reference selected. in adc low power mo de, the voltage reference selection is controlled by adcmode[5]. [001] = external reference inputs (vref+, vref?) se lected. set the highextref1 bit if reference voltage exceeds 1.3 v. [010] = auxiliary external reference inputs (adc4/ ext_ref2in+, adc5/ext_ref2in?) selected. set the highextref1 bit if reference voltage exceeds 1.35 v. [011] = (avdd, agnd) divide-by-2 selected. if this co nfiguration is selected, the highextref1 bit is set automatically. [100] = (avdd, adc3). adc3 can be used as th e negative input terminal for the reference source. [101] to [111] = reserved. 3:2 buf_bypass[1:0] buffer bypass. [00] = full buffer on. both positive and negative buffer inputs active. [01] = negative buffer is bypassed, positive buffer is on. [10] = negative buffer is on, positive buffer is bypassed. [11] = full buffer bypass. both positive and negative buffer inputs are off. 1:0 digital gain. select for auxiliary adc inputs. [00] = adc1 gain = 1. [01] = adc1 gain = 2. [10] = adc1 gain = 4. [11] = adc1 gain = 8. adc filter register name: adcflt address: 0xffff0514 default value: 0x0007 access: read and write function: the adc filter mmr is a 16-bit register that controls the speed and resolution of both the on-chip adcs. note that, i f adcflt is modified, the primary and auxiliary adcs are reset. table 45. adcflt mmr bit designations bit name description 15 chopen chop enable. set by user to enable system chopping of all acti ve adcs. when this bit is set, the adc has very low offset errors and drift, but the adc output rate is reduced by a factor of 3 if af = 0 (see sinc3 decimation factor, bits[6:0] in this table). if af > 0, then the adc output upda te rate is the same with chop on or off. when chop is enabled, the settling time is two output periods. 14 ravg2 running average-by-2 enable bit. set by user to enable a running-average-by-2 function, reducing adc noise. this function is automatically enabled when chopping is active. it is an optional feature when chopping is inactive, and if enabled (when chopping is inactive), does not reduce the adc output rate b ut does increase the settling time by one conversion period. cleared by user to disable the running average function. 13:8 af[5:0] averaging factor (af). the values written to these bits are used to implement a programmable first-order sinc3 post filter. the averaging factor can further reduce adc noise at the expense of output rate as described in bits[6:0] (sinc3 decimation factor) in this table.
aduc7060/aduc7061 rev. c | page 48 of 108 bit name description 7 notch2 sinc3 modify. set by user to modify the standard sinc3 frequency response to increase the filter stop-band rejection by approximately 5 db. this is achieved by inserting a second notch (notch2) at f notch2 = 1.333 f notch where f notch is the location of the first notch in the response. 6:0 sf[6:0] sinc3 decimation factor (sf) 1 .the value (sf) written in these bits controls the oversampling (decimation factor) of the sinc3 filter. the output rate from the sinc3 filter is given by f adc = (512,000/([ sf + 1] 64)) hz 2 when the chop bit (bit 15, chop enable) = 0 and the averaging factor (af) = 0. this is valid for all sf values 125. for sf = 126, f adc is forced to 60 hz. for sf = 127, f adc is forced to 50 hz. for information on calculating the f adc for sf (other than 126 and 127) and af values, refer to table 46 . 1 due to limitations on the digital filter internal data path, th ere are some limitations on the combinations of the sinc3 decim ation factor (sf) and averaging factor (af) that can be used to generate a required adc output rate. this restriction limits the minimum adc up date in normal power mode to 4 hz or 1 hz in lower power mode. 2 in low power mode, the adc is driven directly by the low power oscillator (131 khz) and not 512 khz. all f adc calculations should be divided by 4 (approximately). table 46. adc conversion rates and settling times chop enabled averaging factor running average f adc normal mode f adc low power mode t settling 1 64]1[ 000,512 + no no no adc f 3 64]1[ 072,131 + 64]1[ 000,512 + no no yes adc f 4 64]1[ 072,131 + no yes no ]3[64]1[ 072,131 af sf ++ ]3[64]1[ 000,512 af sf ++ 1 no yes yes ]3[64]1[ 072,131 af sf ++ ]3[64]1[ 000,512 af sf ++ 2 yes n/a n/a 3]3[64]1[ 000,512 +++ 3]3[64]1[ 072,131 +++ 2 1 an additional time of approximately 60 s per ad c is required before the first adc is available. table 47. allowable combinations of sf and af af range sf 0 1 to 7 8 to 63 0 to 31 yes yes yes 32 to 63 yes yes no 64 to 127 yes no no
aduc7060/aduc7061 rev. c | page 49 of 108 adc configuration register name: adccfg address: 0xffff0518 default value: 0x00 access: read and write function: the 8-bit adc configuration mmr controls extended functionality related to the on-chip adcs. table 48. adccfg mmr bit designations bit name description 7 gndsw_en analog ground switch enable. this bit is set to 1 by user software to connect th e external gnd_sw pin to an internal analog ground reference point. this bit can be used to connect and disconnect external circuits and components to ground under program control and thereby minimize dc curr ent consumption when the external circuit or component is not being used. this bit is used in conjunction with adccfg[1] to select a 20 k resistor to ground. when this bit is cleared, the analog ground switch is disconnected from the external pin. adc0accen[1:0] primary channel (32-bit) accumulator enable. [00] = accumulator disabled and reset to 0. the accu mulator must be disabled for a full adc conversion (adcsta[0] set twice) before the accumulator can be re -enabled to ensure that the accumulator is reset. [01] = accumulator active. positive current values ar e added to the accumulator total; the accumulator can overflow if allowed to run for >65,535 conversions. negative current values are subtracted from the accumulator total; the accumulator is clamped to a minimum value of 0. [10] = accumulator active. same as [01] except that ther e is no clamp. positive current values are added to the accumulator total; the accumulator can overflow if allowed to run for >65,535 conversions. the absolute values of negative current are subtracted from the accu mulator total; the accumulator in this mode continues to accumulate negatively, below 0. 6:5 [11] = accumulator and comparator active. this ca uses an adc0 interrupt if adcmski[6] is set. 4:3 adc0cmpen[1:0] primary adc comparator enable bits. [00] = comparator disabled. [01] = comparator active. interrupt asserted if ab solute value of adc0 conversion result |i| adc0th. [10] = comparator count mode active. interrupt asserted if absolute value of adc0 conversion result |i| adc0th for the number of adc0thc conversions. a conversion value |i| < adc0th resets the threshold counter value (adc0thv) to 0. [11] = comparator count mode active, interrupt asserted if absolute value of adc0 conversion result |i| adc0th for the number of adc0thc conversions. a co nversion value |i| < adc0th decrements the threshold counter value (adc0thv) toward 0. 2 adc0oren adc0 overrange enable. set by the user to enable a coarse comparator on th e primary channel adc. if the reading is grossly (>30% approximate) overrange for the active gain setting, the overrange bit in the adcsta mmr is set. the adc reading must be outside this range for grea ter than 125 s for the flag to be set. do not use this feature in adc low power mode. 1 gndsw_res_en set to 1 to enable a 20 k resistor in series with the ground switch. clear this bit to disable this resistor. 0 adcrcen adc result counter enable. set by user to enable the result count mo de. adc interrupts occur if adc0rcr = adc0rcv. cleared to disable the result counter. adc interrupts occur after every conversion.
aduc7060/aduc7061 rev. c | page 50 of 108 primary channel ad c data register name: adc0dat address: 0xffff051c default value: 0x00000000 access: read only function: this adc data mmr holds the 24-bit conversion result from the primary adc. the adc does not update this mmr if the adc0 conversion result ready bit (adcsta[0]) is set. a read of this mmr by the mcu clears all asserted ready flags (adcsta[1:0]). table 49. adc0dat mmr bit designations bit description 23:0 adc0 24-bit conversion result. auxiliary channel adc data register name: adc1dat address: 0xffff0520 default value: 0x00000000 access: read only function: this adc data mmr holds the 24-bit conversion result from the auxiliary adc. the adc does not update this mmr if the adc0 conversion result ready bit (adcsta[1]) is set. table 50. adc1dat mmr bit designations bit description 23:0 adc1 24-bit conversion result. primary channel adc offset calibration register name: adc0of address: 0xffff0524 default value: part specific, factory programmed access: read and write function: this adc offset mmr holds a 16-bit offset calibration coefficient for the primary adc. the register is configured at power-on with a factory default value. however, this register automatically overwrites if an offset calibration of the primary adc is initiated by the user via bits in the adcmde mmr. user code can write to this calibration register only if the adc is in idle mode. an adc must be enabled and in idle mode before being written to any offset or gain register. the adc must be in idle mode for at least 23 s. table 51. adc0of mmr bit designations bit description 15:0 adc0 16-bit offset calibration value. auxiliary channel adc offs et calibration register name: adc1of address: 0xffff0528 default value: part specific, factory programmed access: read and write function: this offset mmr holds a 16-bit offset calibration coefficient for the auxiliary channel. the register is configured at power- on with a factory default value. however, this register is automatically overwritten if an offset calibration of the auxiliary channel is initiated by the user via bits in the adcmde mmr. user code can write to this calibration register only if the adc is in idle mode. an adc must be enabled and in idle mode before being written to any offset or gain register. the adc must be in idle mode for at least 23 s.
aduc7060/aduc7061 rev. c | page 51 of 108 table 52. adc1of mmr bit designations bit description 15:0 adc1 16-bit offset calibration value. primary channel adc gain calibration register name: adc0gn address: 0xffff052c default value: part specific, factory programmed access: read and write function: this gain mmr holds a 16-bit gain calibration coefficient for scaling the primary adc conversion result. the register is configured at power-on with a factory default value. however, this register is automatically overwritten if a gain calibration of the primary adc is initiated by the user via bits in the adcmde mmr. user code can write to this calibration register only if the adc is in idle mode. an adc must be enabled and in idle mode before being written to any offset or gain register. the adc must be in idle mode for at least 23 s. table 53. adc0gn mmr bit designations bits description 15:0 adc0 16-bit calibration gain value. auxiliary channel gain calibration register name: adc1gn address: 0xffff0530 default value: part specific, factory programmed access: read and write function: this gain mmr holds a 16-bit gain calibra- tion coefficient for scaling an auxiliary channel conversion result. the register is configured at power-on with a factory default value. however, this register is automatically over- written if a gain calibration of the auxiliary channel is initiated by the user via bits in the adcmde mmr. user code can write to this calibration register only if the adc is in idle mode. an adc must be enabled and in idle mode before being written to any offset or gain register. the adc must be in idle mode for at least 23 s. table 54. adc1gn mmr bit designations bits description 15:0 adc1 16-bit gain calibration value. primary channel adc result counter limit register name: adc0rcr address: 0xffff0534 default value: 0x0001 access: read and write function: this 16-bit mmr sets the number of conversions required before an adc interrupt is generated. by default, this register is set to 0x01. the adc counter function must be enabled via the adc result counter enable bit in the adccfg mmr. table 55. adc0rcr mmr bit designations bits description 15:0 adc0 result counter limit/reload register. primary channel adc result counter register name: adc0rcv address: 0xffff0538 default value: 0x0000 access: read only function: this 16-bit, read-only mmr holds the current number of primary adc conversion results. it is used in conjunction with adc0rcr to mask primary channel adc interrupts, generating a lower interrupt rate. when adc0rcv = adc0rcr, the value in adc0rcv resets to 0 and recommences counting. it can also be used in conjunction with the accumulator (adc0acc) to allow an average calculation to be taken. the result counter is enabled via adccfg[0]. this mmr is also reset to 0 when the primary adc is reconfigured, that is, when the adc0con or adcmde is written. table 56. adc0rcv mmr bit designations bits description 15:0 adc0 result counter register.
aduc7060/aduc7061 rev. c | page 52 of 108 primary channel adc threshold register name: adc0th address: 0xffff053c default value: 0x0000 access: read and write function: this 16-bit mmr sets the threshold against which the absolute value of the primary adc conversion result is compared. in unipolar mode, adc0th[15:0] are compared, and in twos complement mode, adc0th[14:0] are compared. table 57. adc0th mmr bit designations bit description 15:0 adc0 16-bit comparator threshold register. primary channel adc threshold counter limit register name: adc0thc address: 0xffff0540 default value: 0x0001 access: read and write function: this 8-bit mmr determines how many cumulative (values below the threshold decrement or reset the count to 0) primary adc conversion result readings above adc0th must occur before the primary adc comparator threshold bit is set in the adcsta mmr, generating an adc interrupt. the primary adc comparator threshold bit is asserted as soon as adc0thv = adc0rcr. table 58. adc0thc mmr bit designations bit description 15:8 reserved. 7:0 adc0 8-bit threshold counter limit register. primary channel adc threshold counter register name: adc0thv address: 0xffff0544 default value: 0x0000 access: read only function: this 8-bit mmr is incremented every time the absolute value of a primary adc conversion result |result| adc0th. this register is decremented or reset to 0 every time the absolute value of a primary adc conversion result |result| < adc0th. the configuration of this function is enabled via the primary channel adc comparator bits in the adccfg mmr. table 59. adc0thv mmr bit designations bit description 7:0 adc0 8-bit threshold exceeded counter register. primary channel adc accumulator register name: adc0acc address: 0xffff0548 default value: 0x00000000 access: read only function: this 32-bit mmr holds the primary adc accumulator value. the primary adc ready bit in the adcsta mmr should be used to determine when it is safe to read this mmr. the mmr value is reset to 0 by disabling the accumulator in the adccfg mmr or by reconfiguring the primary channel adc. table 60. adc0acc mmr bit designations bit description 31:0 adc0 32-bit accumulator register.
aduc7060/aduc7061 rev. c | page 53 of 108 primary channel adc comparator threshold register table 61. adc0ath mmr bit designations bit description name: adc0ath 31:0 adc0 32-bit comparator threshold register of the accumulator. address: 0xffff054c default value: 0x00000000 access: read and write function: this 32-bit mmr holds the threshold value for the accumulator comparator of the primary channel. when the accumulator value in adc0acc exceeds the value in adc0ath, the adc0athex bit in adcsta is set. this causes an interrupt if the corresponding bit in adcmski is also enabled. interrupt (adc0ovr) 16 |absval| interrupt (adc0rdy) (readable) clear (readable) 32 option: up/reset interrupt (adc0athex) interrupt (adc0thex) adc0ath adc0acc accumulator f adc adc0thc adc0th adc0thv up/down adc0rcv counter adc0rcr (default = 1) f adc f adc f adc primary adc adc0 adc1 fast overrange 0 7079-011 figure 17. primary adc accumulator/comparator/counter block diagram
aduc7060/aduc7061 rev. c | page 54 of 108 excitation current sources control register name: iexcon address: 0xffff0570 default value: 0x00 access: read and write function: this 8-bit mmr controls the two excitation current sources, iexc0 and iexc1. table 62. iexcon mmr bit designations bit name description 7 iexc1_en enable bit for iexc1 current source. set this bit to 1 to enable excitation current source 1. clear this bit to disable excitation current source 1. 6 iexc0_en enable bit for iexc0 current source. set this bit to 1 to enable excitation current source 0. clear this bit to disable excitation current source 0. 5 iexc1_dir set this bit to 1 to direct exci tation current source 1 to the iexc0 pin. set this bit to 0 to direct excitati on current source 1 to the iexc1 pin. 4 iexc0_dir set this bit to 1 to direct exci tation current source 0 to the iexc1 pin. set this bit to 0 to direct excitati on current source 0 to the iexc0 pin. 3:1 iout[3:1] these bits control the excitation current level for each source. iout[3:1] = 000, excitation current = 0 a + (iout[0] 10 a). iout[3:1] = 001, excitation current = 200 a + (iout[0] 10 a). iout[3:1] = 010, excitation current = 400 a + (iout[0] 10 a). iout[3:1] = 011, excitation current = 600 a + (iout[0] 10 a). iout[3:1] = 100, excitation current = 800 a + (iout[0] 10 a). iout[3:1] = 101, excitation current = 1 ma + (iout[0] 10 a). all other values are undefined. 0 iout[0] set this bit to 1 to enab le 10 a diagnostic current source. clear this bit to 0 to disabl e 10 a diagnostic current source. example application circuits figure 18 shows a simple bridge sensor interface to the aduc706x, including the rc filters on the analog input channels. notice that the sense lines from the bridge (connecting to the reference inputs) are wired separately from the excitation lines (going to dvdd/avdd and ground). this results in a total of six wires going to the bridge. this 6-wire connection scheme is a feature of most off-the-shelf bridge transducers (such as load cells) that helps to minimize errors that would otherwise result from wire impedances. in figure 19 , the ad592 is an external temperature sensor used to measure the thermocouple cold junction, and its output is con- nected to the auxiliary channel. the adr280 is an external 1.2 v reference partalternatively, the internal reference can be used. here, the thermocouple is connected to the primary adc as a differential input to adc0/adc1. note the resistor between vref+ and adc1 to bias the adc inputs above 100 mv. figure 20 shows a simple 4-wire rtd interface circuit. as with the bridge transducer implementation in figure 18 , if a power supply and a serial connection to the outside world are added, figure 20 represents a complete system.
aduc7060/aduc7061 rev. c | page 55 of 108 +2.5v iexc1 aduc7060/ aduc7061 vref+ agnd/dgnd adc0 spi i 2 c uart gpio adc1 avdd/dvdd rtd vref? 07079-014 +2.5v aduc7060/ aduc7061 adc0 spi i 2 c uart gpio adc1 07079-012 vref+ agnd/dgnd avdd/dvdd vref? figure 18. bridge interface circuit figure 20. example of an rtd interface circuit +2.5v adc0 aduc7061 adc1 spi i 2 c uart gpio adc4 aduc7060/ ad592 adr280 07079-013 vref+ agnd/dgnd avdd/dvdd vref? figure 19. example of a thermocouple interface circuit
aduc7060/aduc7061 rev. c | page 56 of 108 dac peripherals dac the aduc706x incorporates a voltage output dac on chip. in normal mode, the dac resolution is 12-bits. in interpolation, the dac resolution is 16 bits with 14 effective bits. the dac has a rail-to-rail voltage output buffer capable of driving 5 k/100 pf. the dac has four selectable ranges. ? 0 v to v ref (internal band gap 1.2 v reference) ? vref? to vref+ ? adc5/ext_ref2in? to adc4/ext_ref2in+ ? 0 v to avdd the maximum signal range is 0 v to avdd. op amp mode as an option, the dac can be disabled and its output buffer used as an op amp. mmr interface the dac is configurable through a control register and a data register. dac0con register name: dac0con address: 0xffff0600 default value: 0x0200 access: read and write table 63. dac0con mmr bit designations bit name description 15:10 reserved. 9 dacpd set to 1 to power down dac output (dac output is tristated). clear this bit to enable the dac. 8 dacbuflp set to 1 to place the dac output buffer in low power mode. see the normal dac mode and op amp mode sections for further details on electrical specifications. clear this bit to enable the dac buffer. 7 opamp set to 1 to place the dac output buffer in op amp mode. clear this bit to enable the dac output buffer for normal dac operation. 6 dacbufbypass set to 1 to bypass the output buffer an d send the dac output directly to the output pin. clear this bit to buffer the dac output. 5 dacclk cleared to 0 to update the dac on the negative edge of hclk. set to 1 to update the dac on the negative edge of time r1. this mode is ideally suited for waveform generation where the next value in the waveform is written to dac0dat at regular intervals of timer1. 4 dacclr set to 1 for normal dac operation. set to 0 to clear the dac output and to set dac0dat to 0. writing to this bit has an immediate effect on the dac output. 3 dacmode set to 1 to enable the dac in 16-bit interpolation mode. set to 0 to enable the dac in normal 12-bit mode. 2 rate used with interpolation mode. set to 1 to configure the interpolation clock as uclk/16. set to 0 to configure the interpolation clock as uclk/32. 1:0 dac range bits [11] = 0 v to avdd range. [10] = adc5/ext_ref2in? to adc4/ext_ref2in+. [01] = vref? to vref+. [00] = 0 v to v ref (1.2 v) range. internal reference source.
aduc7060/aduc7061 rev. c | page 57 of 108 dac0dat register name: dac0dat address: 0xffff0604 default value: 0x00000000 access: read and write function: this 32-bit mmr contains the dac output value. table 64. dac0dat mmr bit designations bit description 31:28 reserved. 27:16 12-bit data for dac0. 15:12 extra four bits used in interpolation mode. 11:0 reserved. using the dac the on-chip dac architecture cons ists of a resistor string dac followed by an output buffer amplifier. the reference source for the dac is user selectable in software. it can be avdd, vref, or adcx/ext_ref2in. ? in 0-to-avdd mode, the dac output transfer function spans from 0 v to the voltage at the avdd pin. ? in vref and adcx/ext_ref2in modes, the dac output transfer function spans from negative input voltage to the voltage positive input pin. note that these voltages must never go below 0 v or above avdd. ? in 0-to-v ref mode, the dac output transfer function spans from 0 v to the internal 1.2 v reference, v ref . the dac can be configured in three different user modes: normal mode, dac interpolation mode, and op amp mode. normal dac mode in this mode of operation, the dac is configured as a 12-bit voltage output dac. by default, the dac buffer is enabled, but the output buffer can be disabled. if the dac output buffer is disabled, the dac is capable of driving a capacitive load of only 20 pf. the dac buffer is disabled by setting the dacbufbypass bit in dac0con. the dac output buffer amplifier features a true, rail-to-rail output stage implementation. this means that when unloaded, each output is capable of swinging to within less than 5 mv of both avdd and ground. moreover, the linearity specification of the dac (when driving a 5 k resistive load to ground) is guar- anteed through the full transfer function except for code 0 to code 100 and, in 0-to- avdd mode only, code 3995 to code 4095. linearity degradation near ground and avdd is caused by saturation of the output amplifier, and a general representation of its effects (neglecting offset and gain error) is illustrated in figure 21 . the dotted line in figure 21 indicates the ideal transfer function, and the solid line represents what the transfer function may look like with endpoint nonlinearities due to saturation of the output amplifier. note that figure 21 repre- sents a transfer function in 0-to-avdd mode only. in 0-to-v ref or, vref, and adcx/ext_ref2in modes (with v ref < avdd or adcx/ext_ref2in < avdd), the lower nonlinearity is similar. however, the upper portion of the transfer function follows the ideal line all the way to the end (v ref in this case, not avdd), showing no signs of endpoint linearity errors. avdd avdd ? 100mv 100mv 0x00000000 0x0fff0000 07079-015 figure 21. endpoint nonlineariti es due to amplifier saturation the endpoint nonlinearities conceptually illustrated in figure 21 worsen as a function of output loading. most of the aduc706x data sheet specifications in normal mode assume a 5 k resistive load to ground at the dac output. as the output is forced to source or sink more current, the nonlinear regions at the top or bottom (respectively) of figure 21 become larger. with larger current demands, this can significantly limit output voltage swing. dac interpolation mode in interpolation mode, a higher dac output resolution of 16 bits is achieved with a longer update rate than normal mode. the update rate is controlled by the interpolation clock rate selected in the dac0con register. in this mode, an external rc filter is required to create a constant voltage. op amp mode in op amp mode, the dac output buffer is used as an op amp with the dac itself disabled. adc6 is the positive input to the op amp, adc7 is the negative input, and adc8 is the output. in this mode, the dac should be powered down by setting bit 9 of dac0con.
aduc7060/aduc7061 rev. c | page 58 of 108 nonvolatile flash/ee memory the aduc706x incorporates flash/ee memory technology on chip to provide the user with nonvolatile, in-circuit reprogram- mable memory space. retention quantifies the ability of the flash/ee memory to retain its programmed data over time. again, the parts are qualified in accordance with the formal jedec retention lifetime specification a117 at a specific junction temperature (t j = 85c). as part of this qualification procedure, the flash/ ee memory is cycled to its specified endurance limit, described previously, before data retention is characterized. this means that the flash/ee memory is guaranteed to retain its data for its fully specified retention lifetime every time that the flash/ee memory is reprogrammed. also note that retention lifetime, based on activation energy of 0.6 ev, derates with t j , as shown in like eeprom, flash memory can be programmed in-system at a byte level, although it must first be erased. the erase is performed in page blocks. as a result, flash memory is often and, more correctly, referred to as flash/ee memory. overall, flash/ee memory represents a step closer to the ideal memory device that includes nonvolatility, in-circuit programmability, high density, and low cost. incorporated in the aduc706x, flash/ee memory technology allows the user to update program code space in-circuit, without the need to replace one time programmable (otp) devices at remote operating nodes. figure 22 . 150 300 450 600 30 40 55 70 85 100 125 135 150 retention (years) 0 junction temperature (c) 07079-016 the aduc706x contains a 32 kb array of flash/ee memory. the lower 30 kb are available to the user and the upper 2 kb contain permanently embedded firmware, allowing in-circuit serial download. these 2 kb of embedded firmware also contain a power-on configuration routine that downloads factory- calibrated coefficients to the various calibrated peripherals (such as adc, temperature sensor, and band gap references). this 2 kb embedded firmware is hidden from user code. flash/ee memory reliability the flash/ee memory arrays on the parts are fully qualified for two key flash/ee memory characteristics: flash/ee memory cycling endurance and flash/ee memory data retention. figure 22. flash/ee memory data retention programming endurance quantifies the ability of the flash/ee memory to be cycled through many program, read, and erase cycles. a single endurance cycle is composed of four independent, sequential events, defined as the 30 kb of flash/ee memory can be programmed in-circuit, using the serial download mode or the provided jtag mode. serial downloading (in-circuit programming) the aduc706x facilitates code download via the standard uart serial port. the parts enter serial download mode after a reset or power cycle if the ntrst/ ? initial page erase sequence ? read/verify sequence for a single flash/ee bm pin is pulled low through an external 1 k resistor. when in serial download mode, the user can download code to the full 30 kb of flash/ee memory while the device is in-circuit in its target application hardware. an executable pc serial download is provided as part of the development system for serial downloading via the uart. ? byte program sequence memory ? second read/verify sequence endurance cycle in reliability qualification, every half word (16-bit wide) location of the three pages (top, middle, and bottom) in the flash/ee memory is cycled 10,000 times from 0x0000 to 0xffff. the flash/ee memory endurance qualification is carried out in accordance with jedec retention lifetime specification a117 over the industrial temperature range of ?40c to +125c. the results allow the specification of a minimum endurance figure over a supply temperature of 10,000 cycles. when the aduc706x enters download mode, the user should be aware that the internal watchdog is enabled with a time-out period of 2 minutes. if the flash erase/write sequence is not completed in this period, a reset occurs. jtag access the jtag protocol uses the on-chip jtag interface to facilitate code download and debug.
aduc7060/aduc7061 rev. c | page 59 of 108 processor reference peripherals interrupt system there are 15 interrupt sources on the aduc706x that are con- trolled by the interrupt controller. all interrupts are generated from the on-chip peripherals, except for the software interrupt (swi), which is programmable by the user. the arm7tdmi cpu core recognizes interrupts as one of two types only: a normal interrupt request (irq) or a fast interrupt request (fiq). all the interrupts can be masked separately. the control and configuration of the interrupt system are managed through a number of interrupt related registers. the bits in each irq and fiq register represent the same interrupt source, as described in table 65 . each aduc706x contains a vectored interrupt controller (vic) that supports nested interrupts up to eight levels. the vic also allows the programmer to assign priority levels to all interrupt sources. interrupt nesting needs to be enabled by setting the enirqn bit in the irqconn register. a number of extra mmrs are used when the full vectored interrupt controller is enabled. immediately save irqsta/fiqsta upon entering the interrupt service routine (isr) to ensure that all valid interrupt sources are serviced. table 65. irq/fiq mmr bit designations bit description comments 0 all interrupts ored (fiq only) this bit is set if any fiq is active 1 software interrupt user programmable interrupt source 2 undefined this bit is not used 3 timer0 general-purpose timer0 4 timer1 or wake-up timer general-purpose timer1 or wake-up timer 5 timer2 or watchdog timer general-purpose timer2 or watchdog timer 6 timer3 or sti timer general-purpose timer3 7 undefined this bit is not used 8 undefined this bit is not used 9 undefined this bit is not used 10 adc adc interrupt source bit 11 uart uart interrupt source bit 12 spi spi interrupt source bit 13 xirq0 (gpio irq0) external interrupt 0 14 xirq1 (gpio irq1) external interrupt 1 15 i 2 c master irq i 2 c master interrupt source bit 16 i 2 c slave irq i 2 c slave interrupt source bit 17 pwm pwm trip interrupt source bit 18 xirq2 (gpio irq2) external interrupt 2 19 xirq3 (gpio irq3) external interrupt 3 irq the irq is the exception signal to enter the irq mode of the processor. it services general-purpose interrupt handling of internal and external events. all 32 bits are logically ored to create a single irq signal to the arm7tdmi core. the four 32-bit registers dedicated to irq are described in the following sections. irqsig irqsig reflects the status of the different irq sources. if a peripheral generates an irq signal, the corresponding bit in the irqsig is set; otherwise, it is cleared. the irqsig bits clear when the interrupt in the particular peripheral is cleared. all irq sources can be masked in the irqen mmr. irqsig is read only. irqsig register name: irqsig address: 0xffff0004 default value: undefined access: read only irqen irqen provides the value of the current enable mask. when a bit is set to 1, the corresponding source request is enabled to create an irq exception. the irqen register cannot be used to disable an interrupt. clear to 0 has no effect. irqen register name: irqen address: 0xffff0008 default value: 0x00000000 access: read and write irqclr irqclr is a write-only register that allows the irqen register to clear to mask an interrupt source. each bit that is set to 1 clears the corresponding bit in the irqen register without affecting the remaining bits. the pair of registers, irqen and irqclr, allows independent manipulation of the enable mask without requiring an atomic read-modify-write. clear to 0 has no effect.
aduc7060/aduc7061 rev. c | page 60 of 108 irqclr register name: irqclr address: 0xffff000c default value: 0x00000000 access: write only irqsta irqsta is a read-only register that provides the current enabled irq source status (effectively a logic and of the irqsig and irqen bits). when set to 1, that source generates an active irq request to the arm7tdmi core. there is no priority encoder or interrupt vector generation. this function is implemented in software in a common interrupt handler routine. irqsta register name: irqsta address: 0xffff0000 default value: 0x00000000 access: read only fast interrupt request (fiq) the fast interrupt request (fiq) is the exception signal to enter the fiq mode of the processor. it is provided to service data transfer or communication channel tasks with low latency. the fiq interface is identical to the irq interface and provides the second level interrupt (highest priority). four 32-bit registers are dedicated to fiq: fiqsig, fiqen, fiqclr, and fiqsta. bit 31 to bit 1 of fiqsta are logically ored to create the fiq signal to the core and to bit 0 of both the fiq and irq registers (fiq source). the logic for fiqen and fiqclr does not allow an interrupt source to be enabled in both irq and fiq masks. a bit set to 1 in fiqen clears, as a side effect, the same bit in irqen. likewise, a bit set to 1 in irqen clears, as a side effect, the same bit in fiqen. an interrupt source can be disabled in both irqen and fiqen masks. fiqsig fiqsig reflects the status of the different fiq sources. if a peripheral generates an fiq signal, the corresponding bit in the fiqsig is set; otherwise, it is cleared. the fiqsig bits are cleared when the interrupt in the particular peripheral is cleared. all fiq sources can be masked in the fiqen mmr. fiqsig is read only. fiqsig register name: fiqsig address: 0xffff0104 default value: undefined access: read only fiqen fiqen provides the value of the current enable mask. when a bit is set to 1, the corresponding source request is enabled to create an fiq exception. when a bit is set to 0, the corre- sponding source request is disabled or masked, which does not create an fiq exception. the fiqen register cannot be used to disable an interrupt. fiqen register name: fiqen address: 0xffff0108 default value: 0x00000000 access: read and write fiqclr fiqclr is a write-only register that allows the fiqen register to clear in order to mask an interrupt source. each bit that is set to 1 clears the corresponding bit in the fiqen register without affecting the remaining bits. the pair of registers, fiqen and fiqclr, allows independent manipulation of the enable mask without requiring an atomic read-modify-write. fiqclr register name: fiqclr address: 0xffff010c default value: 0x00000000 access: write only fiqsta fiqsta is a read-only register that provides the current enabled fiq source status (effectively a logic and of the fiqsig and fiqen bits). when set to 1, that source generates an active fiq request to the arm7tdmi core. there is no priority encoder or interrupt vector generation. this function is implemented in software in a common interrupt handler routine.
aduc7060/aduc7061 rev. c | page 61 of 108 fiqsta register name: fiqsta address: 0xffff0100 default value: 0x00000000 access: read only programmed interrupts because the programmed interrupts are not maskable, they are controlled by another register (swicfg) that writes into both irqsta and irqsig registers and/or the fiqsta and fiqsig registers at the same time. swicfg swicfg is a 32-bit register dedicated to software interrupt, described in table 66 . this mmr allows control of a pro- grammed source interrupt. swicfg register name: swicfg address: 0xffff0010 default value: 0x00000000 access: write only table 66. swicfg mmr bit designations bit description 31:3 reserved. 2 programmed interrupt fiq. setting/clearing this bit corresponds to setting/clearing bit 1 of fiqsta and fiqsig. 1 programmed interrupt irq. se tting/clearing this bit corresponds to setting/clearing bit 1 of irqsta and irqsig. 0 reserved. any interrupt signal must be active for at least the minimum interrupt latency time to be detected by the interrupt controller and to be detected by the user in the irqsta/fiqsta register. vectored interrupt controller (vic) each aduc706x incorporates an enhanced interrupt control system or vectored interrupt controller. the vectored interrupt controller for irq interrupt sources is enabled by setting bit 0 of the irqconn register. similarly, bit 1 of irqconn enables the vectored interrupt controller for the fiq interrupt sources. the vectored interrupt controller provides the following enhancements to the standard irq/fiq interrupts: ? vectored interruptsallows a user to define separate interrupt service routine addresses for every interrupt source. this is achieved by using the irqbase and irqvec registers. ? irq/fiq interruptscan be nested up to eight levels depending on the priority settings. an fiq still has a higher priority than an irq. therefore, if the vic is enabled for both the fiq and irq and prioritization is maximized, it is possible to have 16 separate interrupt levels. ? programmable interrupt prioritiesusing the irqp0 to irqp2 registers, an interrupt source can be assigned an interrupt priority level value from 0 to 7. vic mmrs irqbase the vector base register, irqbase, is used to point to the start address of memory used to store 32 pointer addresses. these pointer addresses are the addresses of the individual interrupt service routines. irqbase register name: irqbase address: 0xffff0014 default value: 0x00000000 access: read and write table 67. irqbase mmr bit designations bit access initial value description 31:16 read only reserved always read as 0. 15:0 r/w 0 vector base address. irqvec the irq interrupt vector register, irqvec, points to a memory address containing a pointer to the interrupt service routine of the currently active irq. this register should be read only when an irq occurs and irq interrupt nesting has been enabled by setting bit 0 of the irqconn register. irqvec register name: irqvec address: 0xffff001c default value: 0x00000000 access: read only
aduc7060/aduc7061 rev. c | page 62 of 108 table 68. irqvec mmr bit designations bit access initial value description 31:23 read only 0 always read as 0. 22:7 read only 0 irqbase register value. 6:2 read only 0 highest priority irq source. this is a value between 0 to 19 repre- senting the possible interrupt sources. for example, if the highest currently active irq is timer1, then these bits are [01000]. 1:0 reserved 0 reserved bits. priority registers the interrupt priority registers, irqp0, irqp1, and irqp2, allow each interrupt source to have its priority level configured for a level between 0 and 7. level 0 is the highest priority level. irqp0 register name: irqp0 address: 0xffff0020 default value: 0x00000000 access: read and write table 69. irqp0 mmr bit designations bit name description 31:27 reserved reserved bits. 26:24 t3pi a priority level of 0 to 7 can be set for timer3. 23 reserved reserved bit. 22:20 t2pi a priority level of 0 to 7 can be set for timer2. 19 reserved reserved bit. 18:16 t1pi a priority level of 0 to 7 can be set for timer1. 15 reserved reserved bit. 14:12 t0pi a priority level of 0 to 7 can be set for timer0. 11:7 reserved reserved bits. 6:4 swintp a priority level of 0 to 7 can be set for the software interrupt source. 3:0 reserved interrupt 0 cannot be prioritized. irqp1 register name: irqp1 address: 0xffff0024 default value: 0x00000000 access: read and write table 70. irqp1 mmr bit designations bit name description 31 reserved reserved bit. 30:28 i2cmpi a priority level of 0 to 7 can be set for i 2 c master. 27 reserved reserved bit. 26:24 irq1pi a priority level of 0 to 7 can be set for irq1. 23 reserved reserved bit. 22:20 irq0pi a priority level of 0 to 7 can be set for irq0. 19 reserved reserved bit. 18:16 spimpi a priority level of 0 to 7 can be set for spi master. 15 reserved reserved bit. 14:12 uartpi a priority level of 0 to 7 can be set for uart. 11 reserved reserved bit. 10:8 adcpi a priority level of 0 to 7 can be set for the adc interrupt source. 7:0 reserved reserved bits. irqp2 register name: irqp2 address: 0xffff0028 default value: 0x00000000 access: read and write table 71. irqp2 mmr bit designations bit name description 31:15 reserved reserved bit. 14:12 irq3pi a priority level of 0 to 7 can be set for irq3. 11 reserved reserved bit. 10:8 irq2pi a priority level of 0 to 7 can be set for irq2. 7 reserved reserved bit. 6:4 spispi a priority level of 0 to 7 can be set for spi slave. 3 reserved reserved bit. 2:0 i2cspi a priority level of 0 to 7 can be set for i 2 c slave.
aduc7060/aduc7061 rev. c | page 63 of 108 irqconn the irqconn register is the irq and fiq control register. it contains two active bits: the first to enable nesting and prioritization of irq interrupts, and the other to enable nesting and prioritization of fiq interrupts. if these bits are cleared, fiqs and irqs can still be used, but it is not possible to nest irqs or fiqs. neither is it possible to set an interrupt source priority level. in this default state, an fiq does have a higher priority than an irq. irqconn register name: irqconn address: 0xffff0030 default value: 0x00000000 access: read and write table 72. irqconn mmr bit designations bit name description 31:2 reserved these bits are reserved and should not be written to. 1 enfiqn setting this bit to 1 enables nesting of fiq interrupts. clearing this bit means no nesting or prioritization of fiqs is allowed. 0 enirqn setting this bit to 1 enables nesting of irq interrupts. clearing this bit means no nesting or prioritization of irqs is allowed. irqstan if irqconn[0] is asserted and irqvec is read, then one of these bits is asserted. the bit that asserts depends on the priority of the irq. if the irq is of priority 0, then bit 0 asserts; priority 1, then bit 1 asserts; and so forth. when a bit is set in this register, all interrupts of that priority and lower are blocked. to clear a bit in this register, all bits of a higher priority must be cleared first. it is possible to clear only one bit at a time. for example, if this register is set to 0x09, writing 0xff changes the register to 0x08, and writing 0xff a second time changes the register to 0x00. irqstan register name: irqstan address: 0xffff003c default value: 0x00000000 access: read and write table 73. irqstan mmr bit designations bit name description 31:8 reserved these bits are reserved and should not be written to. 7:0 setting this bit to 1 enables nesting of fiq interrupts. clearing this bit means no nesting or prioritization of fiqs is allowed. fiqvec the fiq interrupt vector register, fiqvec, points to a memory address containing a pointer to the interrupt service routine of the currently active fiq. this register should be read only when an fiq occurs and fiq interrupt nesting has been enabled by setting bit 1 of the irqconn register. fiqvec register name: fiqvec address: 0xffff011c default value: 0x00000000 access: read only table 74. fiqvec mmr bit designations bit access initial value description 31:23 read only 0 always read as 0. 22:7 read only 0 irqbase register value. 6:2 0 highest priority fiq source. this is a value between 0 to 19 that represents the possible interrupt sources. for example, if the highest currently active fiq is timer1, then these bits are [01000]. 1:0 reserved 0 reserved bits.
aduc7060/aduc7061 rev. c | page 64 of 108 fiqstan if irqconn[1] is asserted and fiqvec is read, then one of these bits asserts. the bit that asserts depends on the priority of the fiq. if the fiq is of priority 0, bit 0 asserts; priority 1, bit 1 asserts; and so forth. when a bit is set in this register, all interrupts of that priority and lower are blocked. to clear a bit in this register, all bits of a higher priority must be cleared first. it is possible to clear only one bit as a time. for example, if this register is set to 0x09, writing 0xff changes the register to 0x08, and writing 0xff a second time changes the register to 0x00. fiqstan register name: fiqstan address: 0xffff013c default value: 0x00000000 access: read and write table 75. fiqstan mmr bit designations bit name description 31:8 reserved these bits are reserved and should not be written to. 7:0 setting this bit to 1 enables nesting of fiq interrupts. clearing this bit means no nesting or prioritization of fiqs is allowed. external interrupts (irq0 to irq3) the aduc706x provides up to four external interrupt sources. these external interrupts can be individually configured as level triggered or rising/falling edge triggered. to enable the external interrupt source, the appropriate bit must first be set in the fiqen or irqen register. to select the required edge or level to trigger on, the irqcone register must be appropriately configured. to properly clear an edge based external irq interrupt, set the appropriate bit in the irqclre register. irqcone register name: irqcone address: 0xffff0034 default value: 0x00000000 access: read and write table 76. irqcone mmr bit designations bit name description 31:8 reserved these bits are reserved and should not be written to. 7:6 irq3src[1:0] [11] = external irq3 triggers on falling edge. [10] = external irq3 triggers on rising edge. [01] = external irq3 triggers on low level. [00] = external irq3 triggers on high level. 5:4 irq2src[1:0] [11] = external irq2 triggers on falling edge. [10] = external irq2 triggers on rising edge. [01] = external irq2 triggers on low level. [00] = external irq2 triggers on high level. 3:2 irq1src[1:0] [11] = external irq1 triggers on falling edge. [10] = external irq1 triggers on rising edge. [01] = external irq1 triggers on low level. [00] = external irq1 triggers on high level. 1:0 irq0src[1:0] [11] = external irq0 triggers on falling edge. [10] = external irq0 triggers on rising edge. [01] = external irq0 triggers on low level. [00] = external irq0 triggers on high level.
aduc7060/aduc7061 rev. c | page 65 of 108 irqclre register name: irqclre address: 0xffff0038 default value: 0x00000000 access: read and write table 77. irqclre mmr bit designations bit name description 31:20 reserved these bits are reserved and should not be written to. 19 irq3clri a 1 must be written to this bit in the irq3 interrupt service routine to clear an edge triggered irq3 interrupt. 18 irq2clri a 1 must be written to this bit in the irq2 interrupt service routine to clear an edge triggered irq2 interrupt. 17:15 reserved these bits are reserved and should not be written to. 14 irq1clri a 1 must be written to this bit in the irq1 interrupt service routine to clear an edge triggered irq1 interrupt. 13 irq0clri a 1 must be written to this bit in the irq0 interrupt service routine to clear an edge triggered irq0 interrupt. 12:0 reserved these bits are reserved and should not be written to.
aduc7060/aduc7061 rev. c | page 66 of 108 timers the aduc706x features four general-purpose timer/counters. ? timer0 ? timer1 or wake-up timer ? timer2 or watchdog timer ? timer3 the four timers in their normal mode of operation can be either free running or periodic. in free running mode, the counter decrements/increments from the maximum or minimum value until zero/full scale and starts again at the maximum or minimum value. in periodic mode, the counter decrements/increments from the value in the load register (txld mmr) until zero/full scale and starts again at the value stored in the load register. note that the txld mmr should be configured before the txcon mmr. the value of a counter can be read at any time by accessing its value register (txval). timers are started by writing in the control register of the corresponding timer (txcon). in normal mode, an irq is generated each time that the value of the counter reaches zero (if counting down) or full scale (if counting up). an irq can be cleared by writing any value to the clear register of the particular timer (txclri). table 78. timer event capture bit description 0 reserved 1 timer0 2 timer1 or wake-up timer 3 timer2 or watchdog timer 4 timer3 5 reserved 6 reserved 7 reserved 8 adc 9 uart 10 spi 11 xirq0 12 xirq1 13 i 2 c master 14 i 2 c slave 15 pwm 16 xirq2 (gpio irq2) 17 xirq3 (gpio irq3)
aduc7060/aduc7061 rev. c | page 67 of 108 timer0 load registers timer0 name: t0ld timer0 is a 32-bit, general-purpose timer, count down or count up, with a programmable prescaler. the prescaler source can be the low power 32.768 khz oscillator, the core clock, or from one of two external gpios. this source can be scaled by a factor of 1, 16, 256, or 32,768. this gives a minimum resolution of 97.66 ns with a prescaler of 1 (ignoring the external gpios). address: 0xffff0320 default value: 0x00000000 access: read and write the counter can be formatted as a standard 32-bit value or as hours:minutes:seconds:hundredths. function: t0ld is a 32-bit register that holds the 32-bit value that is loaded into the counter. timer0 has a capture register (t0cap) that is triggered by a selected irq source initial assertion. when triggered, the current timer value is copied to t0cap, and the timer continues to run. use this feature to determine the assertion of an event with increased accuracy. note that only peripherals that have their irq source enabled can be used with the timer capture feature. timer0 clear register name: t0clri address: 0xffff032c access: write only the timer0 interface consists of five mmrs: t0ld, t0val, t0cap, t0clri, and t0con. function: this 8-bit, write-only mmr is written (with any value) by user code to clear the interrupt. ? t0ld, t0val, and t0cap are 32-bit registers and hold 32-bit, unsigned integers of which t0val and t0cap are read only. timer0 value register ? t0clri is an 8-bit register and writing any value to this register clears the timer0 interrupt. name: t0val address: 0xffff0324 ? t0con is the configuration mmr, which is described in table 79 . default value: 0xffffffff timer0 features a postscaler that allows the user to count between 1 and 256 the number of timer0 timeouts. to activate the post- scaler, the user sets bit 18 and writes the desired number to count into bits[24:31] of t0con. when that number of timeouts is reached, timer0 can generate an interrupt if t0con[18] is set. access: read only function: t0val is a 32-bit register that holds the current value of timer0. note that, if the part is in a low power mode and timer0 is clocked from the gpio or low power oscillator source, timer0 continues to operate. timer0 reloads the value from t0ld when timer0 overflows. timer0 value 3 2.768khz oscillator core clock frequency/cd core clock frequency gpio prescaler 1, 16, 256, or 32,768 timer0 irq 32-bit up/down counter 8-bit postscaler 32-bit load capture irq[31:0] 07079-017 figure 23. timer0 block diagram
aduc7060/aduc7061 rev. c | page 68 of 108 timer0 capture register name: t0cap address: 0xffff0330 default value: 0x00000000 access: read only function: this 32-bit register holds the 32-bit value captured by an enabled irq event. timer0 control register name: t0con address: 0xffff0328 default value: 0x01000000 access: read and write function: this 32-bit mmr configures the mode of operation of timer0. table 79. t0con mmr bit designations bit name description 31:24 t0pval 8-bit postscaler. by writing to these eight bits, a value is written to the postscaler. writing 0 is interpreted as a 1. by reading these eight bits, the current value of the counter is read. 23 t0pen timer0 enable postscaler. set to enable the timer0 postscaler. if enabled, interrupts are generated after t0con[31:24] periods as defined by t0ld. cleared to disable the timer0 postscaler. 22:20 reserved. these bits are reserved and should be written as 0 by user code. 19 t0pcf postscaler compare flag; read only. set if the numb er of timer0 overflows is equal to the number written to the postscaler. 18 t0srci timer0 interrupt source. set to select interrupt genera tion from the postscaler counter. cleared to select interrupt generation directly from timer0. 17 t0capen event enable bit. set by user to enable time capture of an event. cleared by user to disable time capture of an event. 16:12 t0capsel event select bits[17:0]. the events are described in table 78 . 11 reserved bit. t0clksel clock select. [00] = 32.768 khz. [01] = 10.24 mhz/cd. [10] = 10.24 mhz. 10:9 [11] = p1.0. 8 t0dir count up. set by user for timer0 to count up. cleared by user for timer0 to count down (default). 7 t0en timer0 enable bit. set by user to enable timer0. cleared by user to disable timer0 (default). 6 t0mod timer0 mode. set by user to operate in periodic mode. cleared by user to operate in free running mode (default).
aduc7060/aduc7061 rev. c | page 69 of 108 bit name description t0format format. [00] = binary (default). [01] = reserved. [10] = hours:minutes:seconds:hun dredths (23 hours to 0 hours). 5:4 [11] = hours:minutes:seconds:hundr edths (255 hours to 0 hours). t0scale prescaler. [0000] = source clock/1 (default). [0100] = source clock/16. [1000] = source clock/256. 3:0 [1111] = source clock/32,768. note that all other values are undefined. timer1 or wake-up timer timer1 is a 32-bit wake-up timer, count down or count up, with a programmable prescaler. the prescaler is clocked directly from one of four clock sources, namely, the core clock (which is the default selection), the low power 32.768 khz oscillators, external 32.768 khz watch crystal, or the precision 32.768 khz oscillator. the selected clock source can be scaled by a factor of 1, 16, 256, or 32,768. the wake-up timer continues to run when the core clock is disabled. this gives a minimum resolution of 97.66 ns when operating at cd zero, the core is operating at 10.24 mhz, and with a prescaler of 1 (ignoring the external gpios). the counter can be formatted as a plain 32-bit value or as hours:minutes:seconds:hundredths. timer1 reloads the value from t1ld either when timer1 overflows or immediately when t1ld is written. the timer1 interface consists of four mmrs. ? t1ld and t1val are 32-bit registers and hold 32-bit, unsigned integers. t1val is read only. ? t1clri is an 8-bit register. writing any value to this register clears the timer1 interrupt. ? t1con is the configuration mmr, described in table 80 . timer1 load registers name: t1ld address: 0xffff0340 default value: 0x00000000 access: read and write function: t1ld is a 32-bit register that holds the 32-bit value that is loaded into the counter. timer1 clear register name: t1clri address: 0xffff034c access: write only function: this 8-bit, write-only mmr is written (with any value) by user code to clear the interrupt. timer1 value register name: t1val address: 0xffff0344 default value: 0xffffffff access: read only function: t1val is a 32-bit register that holds the current value of timer1.
aduc7060/aduc7061 rev. c | page 70 of 108 prescaler 1, 16, 256, or 32,768 timer1 irq 32-bit up/down counter 32.768khz oscillator core clock frequency/cd core clock external 32.768khz watch crystal 32-bit load timer1 value 0 7079-018 figure 24. timer1 block diagram timer1 control register name: t1con address: 0xffff0348 default value: 0x0000 access: read and write function: this 16-bit mmr configures the mode of operation of timer1. table 80. t1con mmr bit designations bit name description 15:11 reserved. t1clksel clock source select. 10: 9 [00] = 32.768 khz oscillator. [01] = 10.24 mhz/cd. [10] = xtali. [11] = 10.24 mhz. 8 t1dir count up. set by user for timer1 to count up. cleared by user for timer1 to count down (default). 7 t1en timer1 enable bit. set by user to enable timer1. cleared by user to disable timer1 (default). 6 t1mod timer1 mode. set by user to operate in periodic mode. cleared by user to operate in free running mode (default). t1format format. 5:4 [00] = binary (default). [01] = reserved. [10] = hours:minutes:seconds:hundredths (23 hours to 0 hours). this is only valid with a 32 khz clock. [11] = hours:minutes:seconds:hundredths (255 hours to 0 hours). this is only valid with a 32 khz clock. t1scale prescaler. 3:0 [0000] = source clock/1 (default). [0100] = source clock/16. [1000] = source clock/256. this setting should be used in conjunction with timer1 in the format hours:minutes:seconds:hundredths. see format 10 and format 11 listed with bits[5:4] in this table ( table 80 ). [1111] = source clock/32,768.
aduc7060/aduc7061 rev. c | page 71 of 108 timer2 interface timer2 or watchdog timer the timer2 interface consists of four mmrs. timer2 has two modes of operation, normal mode and watchdog mode. the watchdog timer is used to recover from an illegal software state. when enabled, it requires periodic servicing to prevent it from forcing a reset of the processor. ? t2con is the configuration mmr, described in ( table 81 ). ? t2ld and t2val are 16-bit registers (bit 0 to bit 15) and hold 16-bit, unsigned integers. t2val is read only. ? t2clri is an 8-bit register. writing any value to this register clears the timer2 interrupt in normal mode or resets a new timeout period in watchdog mode. timer2 reloads the value from t2ld either when timer2 overflows or immediately when t2clri is written. normal mode timer2 load register timer2 in normal mode is identical to timer0 in the 16-bit mode of operation, except for the clock source. the clock source is the low power, 32.768 khz oscillator scalable by a factor of 1, 16, or 256. name: t2ld address: 0xffff0360 default value: 0x0040 watchdog mode access: read and write watchdog mode is entered by setting t2con[bit 5]. timer2 decrements from the timeout value present in the t2ld register until zero. the maximum timeout is 512 seconds, using a maximum prescaler/256 and full scale in t2ld. function: this 16-bit mmr holds the timer2 reload value. user software should not configure a timeout period of less than 30 ms. this is to avoid any conflict with flash/ee memory page erase cycles that require 20 ms to complete a single page erase cycle and kernel execution. timer2 clear register name: t2clri address: 0xffff036c if t2val reaches 0, a reset or an interrupt occurs, depending on t2con[1]. to avoid a reset or an interrupt event, any value must be written to t2clri before t2val reaches zero. this reloads the counter with t2ld and begins a new timeout period. access: write only function: this 8-bit, write-only mmr is written (with any value) by user code to refresh (reload) timer2 in watchdog mode to prevent a watchdog timer reset event. when watchdog mode is entered, t2ld and t2con are write protected. these two registers cannot be modified until a power-on reset event resets the watchdog timer. after any other reset event, the watchdog timer continues to count. to avoid an infinite loop of watchdog resets, configure the watchdog timer in the initial lines of user code. user software should configure a minimum timeout period of 30 ms only. timer2 value register name: t2val address: 0xffff0364 timer2 halts automatically during jtag debug access and only recommences counting after jtag relinquishes control of the arm7 core. by default, timer2 continues to count during power-down. to disable this, set bit 0 in t2con. it is recommended that the default value be used, that is, that the watchdog timer continues to count during power-down. default value: 0x0040 access: read only function: this 16-bit, read-only mmr holds the current timer2 count value. prescaler 1, 16, 256 timer2 irq watchdog reset 16-bit up/down counter 32.768khz 16-bit load timer2 value 07079-019 figure 25. timer2 block diagram
aduc7060/aduc7061 rev. c | page 72 of 108 timer2 control register name: t2con address: 0xffff0368 default value: 0x0000 access: read and write function: this 16-bit mmr configures the mode of operation of timer2, as described in detail in table 81 . table 81. t2con mmr bit designations bit name description 15:9 reserved. these bits are reserved and should be written as 0 by user code. 8 t2dir count up/count down enable. set by user code to configure timer2 to count up. cleared by user code to configure timer2 to count down. 7 t2en timer2 enable. set by user code to enable timer2. cleared by user code to disable timer2. 6 t2mod timer2 operating mode. set by user code to configure timer2 to operate in periodic mode. cleared by user to configure timer2 to operate in free running mode. 5 wdogmden watchdog timer mode enable. set by user code to enable watchdog mode. cleared by user code to disable watchdog mode. 4 reserved. this bit is reserved and should be written as 0 by user code. 3:2 t2scale timer2 clock (32.768 khz) prescaler. 00 = 32.768 khz (default). 01 = source clock/16. 10 = source clock/256. 11 = reserved. 1 wdogeni watchdog timer irq enable. set by user code to produce an irq instead of a reset when the watchdog reaches 0. cleared by user code to disable the irq option. 0 t2pdoff stop timer2 when power-down is enabled. set by user code to stop timer2 when the peripherals are powered down using bit 4 in the powcon0 mmr. cleared by user code to enable timer2 when the peripherals are powered down using bit 4 in the powcon0 mmr.
aduc7060/aduc7061 rev. c | page 73 of 108 timer3 timer3 is a general-purpose, 16-bit, count up/count down timer with a programmable prescaler. timer3 can be clocked from the core clock or the low power 32.768 khz oscillator with a prescaler of 1, 16, 256, or 32,768. timer3 has a capture register (t3cap) that can be triggered by a selected irq source initial assertion. once triggered, the current timer value is copied to t3cap, and the timer continues to run. this feature can be used to determine the assertion of an event with increased accuracy. the timer3 interface consists of five mmrs. ? t3ld, t3val, and t3cap are 16-bit registers and hold 16-bit, unsigned integers. t3val and t3cap are read only. ? t3clri is an 8-bit register. writing any value to this register clears the interrupt. ? t3con is the configuration mmr, described in table 82 . timer3 load registers name: t3ld address: 0xffff0380 default value: 0x0000 access: read and write function: t3ld is a 16-bit register that holds the 16-bit value that is loaded into the counter. timer3 clear register name: t3clri address: 0xffff038c access: write only function: this 8-bit, write-only mmr is written (with any value) by user code to clear the interrupt. timer3 value register name: t3val address: 0xffff0384 default value: 0xffff access: read only function: t3val is a 16-bit register that holds the current value of timer3. time3 capture register name: t3cap address: 0xffff0390 default value: 0x0000 access: read only function: this is a 16-bit register that holds the 16-bit value captured by an enabled irq event. timer3 control register name: t3con address: 0xffff0388 default value: 0x00000000 access: read and write function: this 32-bit mmr configures the mode of operation of timer3.
aduc7060/aduc7061 rev. c | page 74 of 108 table 82. t3con mmr bit designations bit name description 31:18 reserved. 17 t3capen event enable bit. set by user to enable time capture of an event. cleared by user to disable time capture of an event. 16:12 t3capsel event select range, 0 to 17. the events are described in table 78 . 11 reserved. t3clksel clock select. [00] = 32.768 khz oscillator. [01] = 10.24 mhz/cd. [10] = 10.24 mhz. 10:9 [11] = reserved. 8 t3dir count up. set by user for timer3 to count up. cleared by user for timer3 to count down (default). 7 t3en timer3 enable bit. set by user to enable timer3. cleared by user to disable timer3 (default). 6 t3mod timer3 mode. set by user to operate in periodic mode. cleared by user to operate in free running mode (default mode). 5:4 reserved. t3scale prescaler. [0000] = source clock/1 (default). [0100] = source clock/16. [1000] = source clock/256. 3:0 [1111] = source clock/32,768.
aduc7060/aduc7061 rev. c | page 75 of 108 pulse-width modulator pulse-width modulator general overview in all modes, the pwmxcomx mmrs control the point at which the pwm outputs change state. an example of the first pair of pwm outputs (pwm0 and pwm1) is shown in each aduc706x integrates a 6-channel pulse-width modulator (pwm) interface. the pwm outputs can be configured to drive an h-bridge or can be used as standard pwm outputs. on power-up, the pwm outputs default to h-bridge mode. this ensures that the motor is turned off by default. in standard pwm mode, the outputs are arranged as three pairs of pwm pins. users have control over the period of each pair of outputs and over the duty cycle of each individual output. figure 26 . high side (pwm0) low side (pwm1) pwm0com2 pwm0com1 pwm0com0 pwm0len 0 7079-020 table 83. pwm mmrs mmr name description pwmcon pwm control. pwm0com0 compare register 0 for pwm output 0 and pwm output 1. pwm0com1 compare register 1 for pwm output 0 and pwm output 1. figure 26. pwm timing pwm0com2 compare register 2 for pwm output 0 and pwm output 1. the pwm clock is selectable via pwmcon with one of the following values: uclk divided by 2, 4, 8, 16, 32, 64, 128, or 256. the length of a pwm period is defined by pwmxlen. pwm0len frequency control for pwm output 0 and pwm output 1. pwm1com0 compare register 0 for pwm output 2 and pwm output 3. the pwm waveforms are set by the count value of the 16-bit timer and the compare registers contents, as shown with the pwm0 and pwm1 waveforms in pwm1com1 compare register 1 for pwm output 2 and pwm output 3. figure 26 . pwm1com2 compare register 2 for pwm output 2 and pwm output 3. the low-side waveform, pwm1, goes high when the timer count reaches pwm0len, and it goes low when the timer count reaches the value held in pwm0com2 or when the high-side waveform (pwm0) goes low. pwm1len frequency control for pwm output 2 and pwm output 3. pwm2com0 compare register 0 for pwm output 4 and pwm output 5. the high-side waveform, pwm0, goes high when the timer count reaches the value held in pwm0com0, and it goes low when the timer count reaches the value held in pwm0com1. pwm2com1 compare register 1 for pwm output 4 and pwm output 5. pwm2com2 compare register 2 for pwm output 4 and pwm output 5. pwmcon control register pwm2len frequency control for pwm output 4 and pwm output 5. name: pwmcon pwmclri pwm interrupt clear. address: 0xffff0f80 default value: 0x0012 access: read and write function: this is a 16-bit mmr that configures the pwm outputs.
aduc7060/aduc7061 rev. c | page 76 of 108 table 84. pwmcon mmr bit designations bit name description 15 reserved this bit is reserved. do not write to this bit. 14 sync enables pwm synchronization. set to 1 by user so that all pwm counters are reset on the next clock edge after the detection of a high-to-low transition on the p1.2/sync pin. cleared by user to ignore transitions on the p1.2/sync pin. 13 pwm5inv set to 1 by user to invert pwm5. cleared by user to us e pwm5 in normal mode. 12 pwm3inv set to 1 by user to invert pwm3. cleared by user to us e pwm3 in normal mode. 11 pwm1inv set to 1 by user to invert pwm1. cleared by user to us e pwm1 in normal mode. 10 pwmtrip set to 1 by user to enable pwm trip interrupt. when the pwm trip input (pin p1.3/trip) is low, the pwmen bit is cleared and an interrupt is generated. cleared by user to disable the pwmtrip interrupt. 9 ena if hoff = 0 and hmode = 1. note that, if not in h-bridge mode, this bit has no effect. set to 1 by user to enable pwm outputs. cleared by user to disable pwm outputs. if hoff = 1 and hmode = 1, see table 85 . pwmcp[2:0] pwm clock prescaler bits. sets the uclk divider. [000] = uclk/2. [001] = uclk/4. [010] = uclk/8. [011] = uclk/16. [100] = uclk/32. [101] = uclk/64. [110] = uclk/128. 8:6 [111] = uclk/256. 5 poinv set to 1 by user to invert all pwm outputs. cleared by user to us e pwm outputs as normal. 4 hoff high side off. set to 1 by user to force pwm0 and pwm2 outputs high. this also forces pwm1 and pwm3 low. cleared by user to use the pwm outputs as normal. 3 lcomp load compare registers. set to 1 by user to load the internal compare registers wi th the values in pwmxcomx on the next transition of the pwm timer from 0x00 to 0x01. cleared by user to use the values previously stored in the internal compare registers. 2 dir direction control. set to 1 by user to enable pwm0 and pwm1 as the output signals while pwm2 and pwm3 are held low. cleared by user to enable pwm2 and pwm3 as th e output signals while pwm0 and pwm1 are held low. 1 hmode enables h-bridge mode. 1 set to 1 by user to enable h-bridge mode and bit 1 to bit 5 of pwmcon. cleared by user to operate the pwms in standard mode. 0 pwmen set to 1 by user to enable all pwm outputs. cleared by user to disable all pwm outputs. 1 in h-bridge mode, hmode = 1. see table 85 to determine the pwm outputs.
aduc7060/aduc7061 rev. c | page 77 of 108 on power-up, pwmcon defaults to 0x0012 (hoff = 1 and hmode = 1). all gpio pins associated with the pwm are configured in pwm mode by default (see table 85 ). clear the pwm trip interrupt by writing any value to the pwmclri mmr. note that when using the pwm trip interrupt, clear the pwm interrupt before exiting the isr. this prevents generation of multiple interrupts. table 85. pwm output selection pwmcon mmr 1 pwm outputs 2 ena hoff poinv dir pwm0 pwm1 pwm2 pwm3 0 0 x x 1 1 1 1 x 1 x x 1 0 1 0 1 0 0 0 0 0 hs1 ls1 1 0 0 1 hs1 ls1 0 0 1 0 1 0 hs1 ls1 1 1 1 0 1 1 1 1 hs1 ls1 1 x is dont care. 2 hs = high side, ls = low side. table 86. compare registers name address default value access pwm0com0 0xffff0f84 0x0000 r/w pwm0com1 0xffff0f88 0x0000 r/w pwm0com2 0xffff0f8c 0x0000 r/w pwm1com0 0xffff0f94 0x0000 r/w pwm1com1 0xffff0f98 0x0000 r/w pwm1com2 0xffff0f9c 0x0000 r/w pwm2com0 0xffff0fa4 0x0000 r/w pwm2com1 0xffff0fa8 0x0000 r/w pwm2com2 0xffff0fac 0x0000 r/w
aduc7060/aduc7061 rev. c | page 78 of 108 pwm0com0 compare register name: pwm0com0 address: 0xffff0f84 default value: 0x0000 access: read and write function: pwm0 output pin goes high when the pwm timer reaches the count value stored in this register. pwm0com1 compare register name: pwm0com1 address: 0xffff0f88 default value: 0x0000 access: read and write function: pwm0 output pin goes low when the pwm timer reaches the count value stored in this register. pwm0com2 compare register name: pwm0com2 address: 0xffff0f8c default value: 0x0000 access: read and write function: pwm1 output pin goes low when the pwm timer reaches the count value stored in this register. pwm0len register name: pwm0len address: 0xffff0f90 default value: 0x0000 access: read and write function: pwm1 output pin goes high when the pwm timer reaches the value stored in this register. pwm1com0 compare register name: pwm1com0 address: 0xffff0f94 default value: 0x0000 access: read and write function: pwm2 output pin goes high when the pwm timer reaches the count value stored in this register. pwm1com1 compare register name: pwm1com1 address: 0xffff0f98 default value: 0x0000 access: read and write function: pwm2 output pin goes low when the pwm timer reaches the count value stored in this register. pwm1com2 compare register name: pwm1com2 address: 0xffff0f9c default value: 0x0000 access: read and write function: pwm3 output pin goes low when the pwm timer reaches the count value stored in this register. pwm1len register name: pwm1len address: 0xffff0fa0 default value: 0x0000 access: read and write function: pwm3 output pin goes high when the pwm timer reaches the value stored in this register.
aduc7060/aduc7061 rev. c | page 79 of 108 pwm2com0 compare register name: pwm2com0 address: 0xffff0fa4 default value: 0x0000 access: read and write function: pwm4 output pin goes high when the pwm timer reaches the count value stored in this register. pwm2com1 compare register name: pwm2com1 address: 0xffff0fa8 default value: 0x0000 access: read and write function: pwm4 output pin goes low when the pwm timer reaches the count value stored in this register. pwm2com2 compare register name: pwm2com2 address: 0xffff0fac default value: 0x0000 access: read and write function: pwm5 output pin goes low when the pwm timer reaches the count value stored in this register. pwm2len register name: pwm2len address: 0xffff0fb0 default value: 0x0000 access: read and write function: pwm5 output pin goes high when the pwm timer reaches the value stored in this register. pwmclri register name: pwmclri address: 0xffff0fb8 default value: 0x0000 access: write only function: write any value to this register to clear a pwm interrupt source. this register must be written to before exiting a pwm interrupt service routine; otherwise, multiple interrupts occur.
aduc7060/aduc7061 rev. c | page 80 of 108 uart serial interface each aduc706x features a 16450-compatible uart. the uart is a full-duplex, universal, asynchronous receiver/transmitter. a uart performs serial-to-parallel conversion on data characters received from a peripheral device and parallel-to-serial conversion on data characters received from the arm7tdmi. the uart features a fractional divider that facilitates high accuracy baud rate generation and a network addressable mode. the uart functionality is available on the p1.0/irq1/sin/t0 and p1.1/sout pins of the aduc706x. calculation of the baud rate using a fractional divider is as follows: ) 2048 (216 mhz24.10 n mdl ratebaud + = (2) 216 mhz24.10 2048 =+ dl ratebaud n m tabl e 88 lists common baud rate values. the serial communication adopts an asynchronous protocol that supports various word lengths, stop bits, and parity genera- tion options selectable in the configuration register. table 88. baud rate using the fractional baud rate generator baud rate dl m n actual baud rate % error 9600 0x21 1 21 9598.55 0.015% baud rate generation 19,200 0x10 1 85 19,203 0.015% the aduc706x features two methods of generating the uart baud rate: normal 450 uart baud rate generation and aduc706x fractional divider. 115,200 0x2 1 796 115,218 0.015% uart register definitions normal 450 uart baud rate generation the uart interface consists of the following 11 registers: the baud rate is a divided version of the core clock using the value in comdiv0 and comdiv1 mmrs (16-bit value, divisor latch (dl)). the standard baud rate generator formula is comtx: 8-bit transmit register comrx: 8-bit receive register dl ratebaud = 216 mhz24.10 (1) comdiv0: divisor latch (low byte) comdiv1: divisor latch (high byte) comcon0: line control register table 87 lists common baud rate values. comcon1: line control register comsta0: line status register table 87. baud rate using the standard baud rate generator comsta1: line status register baud rate dl actual baud rate % error comien0: interrupt enable register 9600 0x21 9696 1.01% comiid0: interrupt identification register 19,200 0x11 18,824 1.96% comdiv2: 16-bit fractional baud divide register 115,200 0x3 106,667 7.41% comtx, comrx, and comdiv0 share the same address location. comtx and comrx can be accessed when bit 7 in the comcon0 register is cleared. comdiv0 or comdiv1 can be accessed when bit 7 of comcon0 or comcon1, respectively, is set. aduc706x fractional divider the fractional divider combined with the normal baud rate generator allows the generation of accurate high speed baud rates. /2 /(m + n/2048) /16dl uart core clock fben 07079-021 figure 27. fractional divider baud rate generation
aduc7060/aduc7061 rev. c | page 81 of 108 uart transmit register write to this 8-bit register (comtx) to transmit data using the uart. comtx register name: comtx address: 0xffff0700 access: write only uart receive register this 8-bit register (comrx) is read to receive data transmitted using the uart. comrx register name: comrx address: 0xffff0700 default value: 0x00 access: read only uart divisor latch register 0 this 8-bit register (comdiv0) contains the least significant byte of the divisor latch that controls the baud rate at which the uart operates. comdiv0 register name: comdiv0 address: 0xffff0700 default value: 0x00 access: read and write uart divisor latch register 1 this 8-bit register contains the most significant byte of the divisor latch that controls the baud rate at which the uart operates. comdiv1 register name: comdiv1 address: 0xffff0704 default value: 0x00 access: read and write uart control register 0 this 8-bit register (comcon0) controls the operation of the uart in conjunction with comcon1. comcon0 register name: comcon0 address: 0xffff070c default value: 0x00 access: read and write
aduc7060/aduc7061 rev. c | page 82 of 108 table 89. comcon0 mmr bit designations bit name description 7 dlab divisor latch access. set by user to enable access to the comdiv0 and comdiv1 registers. cleared by user to disable access to comdiv0 and comdiv1 and enable access to comrx, comtx, and comien0. 6 brk set break. set by user to force transmit to 0. cleared to operate in normal mode. 5 sp stick parity. set by user to force parity to defined values. 1 if eps = 1 and pen = 1. 0 if eps = 0 and pen = 1. 4 eps even parity select bit. set for even parity. cleared for odd parity. 3 pen parity enable bit. set by user to transmit and check the parity bit. cleared by user for no parity transmission or checking. 2 stop stop bit. set by user to transmit 1.5 stop bits if the word leng th is 5 bits, or 2 stop bits if the word length is 6 bits, 7 bits, or 8 bits. the receiver checks the first stop bit only, regardless of the number of stop bits selected. cleared by user to generate on e stop bit in the transmitted data. 1:0 wls word length select. [00] = 5 bits. [01] = 6 bits. [10] = 7 bits. [11] = 8 bits.
aduc7060/aduc7061 rev. c | page 83 of 108 uart control register 1 this 8-bit register controls the operation of the uart in conjunction with comcon0. comcon1 register name: comcon1 address: 0xffff0710 default value: 0x00 access: read and write table 90. comcon1 mmr bit designations bit name description 7:5 reserved bits. not used. 4 loopback loopback. set by user to enable loopback mode. in loopback mode, the transmit pin is forced high. 3:2 reserved bits. not used. 1 rts request to send. set by user to force the rts output to 0. cleared by user to force the rts output to 1. 0 dtr data terminal ready. set by user to force the dtr output to 0. cleared by user to force the dtr output to 1. uart status register 0 comsta0 register name: comsta0 address: 0xffff0714 default value: 0x60 access: read only function: this 8-bit read-only register reflects the current status on the uart. table 91. comsta0 mmr bit designations bit name description 7 reserved. 6 temt comtx and shift register empty status bit. set automatically if comtx and the shift register are empty. this bit indicates that the data has been transmitted, that is, no more data is present in the shift register. cleared automatically when writing to comtx. 5 thre comtx empty status bit. set automatically if comtx is empty. comtx can be written as soon as this bit is set; the previous data might not have been transmitted yet and can still be present in the shift register. cleared automatically when writing to comtx. 4 bi break indicator. set when p1.0/irq1/sin/t0 pin is held low for more than the maximum word length. cleared automatically. 3 fe framing error. set when the stop bit is invalid. cleared automatically. 2 pe parity error. set when a parity error occurs. cleared automatically. 1 oe overrun error. set automatically if data is overwritten before being read. cleared automatically. 0 dr data ready. set automatically when comrx is full. cleared by reading comrx.
aduc7060/aduc7061 rev. c | page 84 of 108 uart status register 1 comsta1 register name: comsta1 address: 0xffff0718 default value: 0x00 access: read only function: comsta1 is a modem status register. table 92. comsta1 mmr bit designations bit name description 7:5 reserved. not used. 4 cts clear to send. 3:1 reserved. not used. 0 dcts delta cts. set automatically if cts changed state since comsta1 was last read. cleared automatically by reading comsta1. uart interrupt enable register 0 comien0 register name: comien0 address: 0xffff0704 default value: 0x00 access: read and write function: this 8-bit register enables and disables the individual uart interrupt sources. table 93. comien0 mmr bit designations bit name description 7:4 reserved. not used. 3 edssi modem status interrupt enable bit. set by user to enable generation of an interrupt if any of comsta0[3:1] are set. cleared by user. 2 elsi receive status interrupt enable bit. set by user to enable generation of an interrupt if any of the comsta0[3:1] register bits are set. cleared by user. 1 etbei enable transmit buffer empty interrupt. set by user to enable an interrupt when the buffer is empty during a transmission; that is, when comsta0[5] is set. cleared by user. 0 erbfi enable receive buffer full interrupt. set by user to enable an interrupt when the buffer is full during a reception. cleared by user. uart interrupt identi fication register 0 comiid0 register name: comiid0 address: 0xffff0708 default value: 0x01 access: read only function: this 8-bit register reflects the source of the uart interrupt.
aduc7060/aduc7061 rev. c | page 85 of 108 table 94. comiid0 mmr bit designations status bits[2:1] bit 0 priority definition clearing operation 00 1 no interrupt 11 0 1 receive line status interrupt read comsta0 10 0 2 receive buffer full interrupt read comrx 01 0 3 transmit buffer empty interrupt write data to comtx or read comiid0 00 0 4 modem status interrupt read comsta1 register uart fractional divider register this 16-bit register (comdiv2) controls the operation of the fractional divider for the aduc706x. comdiv2 register name: comdiv2 address: 0xffff072c default value: 0x0000 access: read and write table 95. comdiv2 mmr bit designations bit name description 15 fben fractional baud rate generator enable bit. set by user to enable the fractional baud rate generator. cleared by user to generate the baud rate using the standard 450 uart baud rate generator. 14:13 reserved. 12:11 fbm[1:0] m. if fbm = 0, m = 4. see equation 2 for the calculation of the baud rate using a fractional divider and table 87 for common baud rate values. 10:0 fbn[10:0] n. see equation 2 for the calculation of the baud rate using a fractional divider and table 87 for common baud rate values.
aduc7060/aduc7061 rev. c | page 86 of 108 i 2 c each aduc706x incorporates an i 2 c peripheral that can be configured as a fully i 2 c-compatible i 2 c bus master device or as a fully i 2 c bus-compatible slave device. the two pins used for data transfer, sda and scl, are configured in a wire-anded format that allows arbitration in a multimaster system. these pins require external pull-up resistors. typical pull-up resistor values are between 4.7 k and 10 k. users program the i 2 c bus peripheral (addressed in the i 2 c bus system). this id can be modified any time that a transfer is not in progress. the user can configure the interface to respond to four slave addresses. the transfer sequence of an i 2 c system consists of a master device initiating a transfer by generating a start condition while the bus is idle. the master transmits the slave device address and the direction of the data transfer (read or write ) during the initial address transfer. if the master does not lose arbitration and the slave acknowledges, the data transfer is initiated. this continues until the master issues a stop condition and the bus becomes idle. the i 2 c peripheral can be configured only as a master or a slave at any given time. the same i 2 c channel cannot simultaneously support master and slave modes. the i 2 c interface on the aduc706x includes the following features: ? support for repeated start conditions. in master mode, the aduc706x can be programmed to generate a repeated start. in slave mode, the ad uc706x recognizes repeated start conditions. ? in master and slave modes, the part recognizes both 7-bit and 10-bit bus addresses. ? in i 2 c master mode, the aduc 706x supports continuous reads from a single slave up to 512 bytes in a single transfer sequence. ? clock stretching is supported in both master and slave modes. ? in slave mode, the aduc706x can be programmed to return a no acknowledge (nack). this allows the validation of checksum bytes at the end of i 2 c transfers. ? bus arbitration in master mode is supported. ? internal and external loopback modes are supported for i 2 c hardware testing. ? the transmit and receive circuits in both master and slave modes contain 2-byte fifos. status bits are available to the user to control these fifos. configuring external pins for i 2 c functionality the i 2 c functions of the p0.1/sclk/scl and p0.3/mosi/sda pins of the aduc706x device are p0.1 and p0.3. the function of p0.1 is the i 2 c clock signal (scl) and the function of p0.3 is the i 2 c data signal (sda). to configure p0.1 and p0.3 for i 2 c mode, bit 4 and bit 12 of the gp0con0 register must be set to 1. bit 1 of the gp0con1 register must also be set to 1 to enable i 2 c mode. note that, to write to gp0con1, the gp0key1 register must be set to 0x7 immediately before writing to gp0con1. also, the gp0key2 register must be set to 0x13 immediately after writing to gp0con1. the following code example shows this in detail: gp0con0 = bit4 + bit12; // select spi/i 2 c alternative function for p0.1 and p0.3 gp0key1 = 0x7; // write to gp0key1 gp0con1 = bit1; // select i 2 c functionality for p0.1 and p0.3 gp0key2 = 0x13; // write to gp0key2
aduc7060/aduc7061 rev. c | page 87 of 108 i2cid0[7:1] = address bits[6:0]. serial clock generation i2cid1[2:0] = address bits[9:7]. the i 2 c master in the system generates the serial clock for a transfer. the master channel can be configured to operate in fast mode (400 khz) or standard mode (100 khz). i2cid1[7:3] must be set to 11110b. master mode the bit rate is defined in the i2cdiv mmr as follows: in master mode, the i2cadr0 register is programmed with the i 2 c address of the device. ) (2 )2( divl divh +++ = uclk clock serial f f in 7-bit address mode, i2cadr0[ 7:1] are set to the device address. i2cadr0[0] is the read/write bit. where: f uclk is the clock before the clock divider. divh is the high period of the clock. divl is the low period of the clock. in 10-bit address mode, the 10-bit address is created as follows: i2cadr0[7:3] must be set to 11110b. i2cadr0[2:1] = address bits[9:8]. thus, for 100 khz operation i2cadr1[7:0] = address bits[7:0]. divh = divl = 0x33 i2cadr0[0] is the read/write bit. and for 400 khz i 2 c registers divh = 0x0a, divl = 0x0f the i 2 c peripheral interface consists overall of 19 mmrs. nine of these are master related only, nine are slave related only, and one mmr is common to both master and slave modes. the i2cdiv register corresponds to divh:divl. i 2 c bus addresses slave mode i 2 c master registers in slave mode, the i2cid0, i2cid1, i2cid2, and i2cid3 registers contain the device ids. the device compares the four i2cidx registers to the address byte received from the bus master. to be correctly addressed, the 7 msbs of any id register must be identical to the 7 msbs of the first received address byte. the least significant bit of the id registers (the transfer direction bit) is ignored in the process of address recognition. i 2 c master control, i2cmcon register name: i2cmcon address: 0xffff0900 default value: 0x0000 the aduc706x also supports 10-bit addressing mode. when bit 1 of i2cscon (adr10en bit) is set to 1, then one 10-bit address is supported in slave mode and is stored in the i2cid0 and i2cid1 registers. the 10-bit address is derived as follows: access: read and write this 16-bit mmr configures the i 2 c peripheral in master mode. function: i2cid0[0] is the read/write bit and is not part of the i 2 c address.
aduc7060/aduc7061 rev. c | page 88 of 108 table 96. i2cmcon mmr bit designations bit name description 15:9 reserved. these bits are reserved and should not be written to. 8 i2cmceni i 2 c transmission complete interrupt enable bit. set this bit to enable an interrup t on detecting a stop condition on the i 2 c bus. clear this interrupt source. 7 i2cnackeni i 2 c no acknowledge (nack) received interrupt enable bit. set this bit to enable interrupts when the i 2 c master receives a no acknowledge. clear this interrupt source. 6 i2caleni i 2 c arbitration lost interrupt enable bit. set this bit to enable interrupts when the i 2 c master did not gain control of the i 2 c bus. clear this interrupt source. 5 i2cmteni i 2 c transmit interrupt enable bit. set this bit to enable interrupts when the i 2 c master has transmitted a byte. clear this interrupt source. 4 i2cmreni i 2 c receive interrupt enable bit. set this bit to enable interrupts when the i 2 c master receives data. cleared by user to disable interrupts when the i 2 c master is receiving data. i2cmsen i 2 c master scl stretch enable bit. set this bit to 1 to enable clock stretching. when scl is lo w, setting this bit forces the device to hold scl low until i2cmsen is cleared. if scl is high, setting this bit forces the device to hold scl low after the next falling edge. 3 clear this bit to disable clock stretching. 2 i2cilen i 2 c internal loopback enable. set this bit to enable loopback test mode. in this mode, the scl and sda sign als are connected internally to their respective input signals. cleared by user to disable loopback mode. 1 i2cbd i 2 c master backoff disable bit. set this bit to allow the device to compete for control of the bus even if another device is currently driving a start condition. clear this bit to back off until the i 2 c bus becomes free. 0 i2cmen i 2 c master enable bit. set by user to enable the i 2 c master mode. cleared to disable the i 2 c master mode.
aduc7060/aduc7061 rev. c | page 89 of 108 i 2 c master status, i2cmsta, register name: i2cmsta address: 0xffff0904 default value: 0x0000 access: read only function: this 16-bit mmr is the i 2 c status register in master mode. table 97. i2cmsta mmr bit designations bit name description 15:11 reserved. these bits are reserved. 10 i2cbbusy i 2 c bus busy status bit. this bit is set to 1 when a start condition is detected on the i 2 c bus. this bit is cleared when a stop condition is detected on the bus. 9 i2cmrxfo master receive fifo overflow. this bit is set to 1 when a byte is written to the receive fifo when it is already full. this bit is cleared in all other conditions. 8 i2cmtc i 2 c transmission complete status bit. this bit is set to 1 when a transmission is complete between the master and the slave with which it was communicating. if the i2cmceni bit in i2cmcon is set, an interrupt is generated when this bit is set. clear this interrupt source. 7 i2cmna i 2 c master no acknowledge data bit this bit is set to 1 when a no acknowledge condition is receiv ed by the master in response to a data write transfer. if the i2cnackeni bit in i2cmcon is set, an in terrupt is generated when this bit is set. this bit is cleared in all other conditions. 6 i2cmbusy i 2 c master busy status bit. set to 1 when the master is busy processing a transaction. cleared if the master is ready or if an other master device has control of the bus. 5 i2cal i 2 c arbitration lost status bit. this bit is set to 1 when the i 2 c master does not gain control of the i 2 c bus. if the i2caleni bit in i2cmcon is set, an interrupt is generated wh en this bit is set. this bit is cleared in all other conditions. i2cmna i 2 c master no acknowledge address bit. this bit is set to 1 when a no acknowledge condition is re ceived by the master in response to an address. if the i2cnackeni bit in i2cmcon is set, an inte rrupt is generated when this bit is set. 4 this bit is cleared in all other conditions. 3 i2cmrxq i 2 c master receive request bit. this bit is set to 1 when data enters the receive fifo. if the i2cmreni in i2cmcon is set, an interrupt is generated. this bit is cleared in all other conditions. 2 i2cmtxq i 2 c master transmit request bit. this bit goes high if the transmit fifo is empty or contai ns only one byte and the master has transmitted an address + write. if the i2cmteni bit in i2cmcon is set, an interrupt is generated when this bit is set. this bit is cleared in all other conditions. 1:0 i2cmtfsta i 2 c master transmit fifo status bits. [00] = i 2 c master transmit fifo empty. [01] = 1 byte in master transmit fifo. [10] = 1 byte in master transmit fifo. [11] = i 2 c master transmit fifo full.
aduc7060/aduc7061 rev. c | page 90 of 108 i 2 c master receive, i2cmrx, register name: i2cmrx address: 0xffff0908 default value: 0x00 access: read only function: this 8-bit mmr is the i 2 c master receive register. i 2 c master transmit, i2cmtx, register name: i2cmtx address: 0xffff090c default value: 0x00 access: write only function: this 8-bit mmr is the i 2 c master transmit register. i 2 c master read count, i2cmcnt0, register name: i2cmcnt0 address: 0xffff0910 default value: 0x0000 access: read and write function: this 16-bit mmr holds the required number of bytes when the master begins a read sequence from a slave device. table 98. i2cmcnt0 mmr bit designations bit name description 15:9 reserved. 8 i2crecnt set this bit if more than 256 bytes are required from the slave. clear this bit when reading 256 bytes or fewer. 7:0 i2crcnt these eight bits hold the number of bytes required during a slave read sequence, minus 1. if only a single byte is required, set these bits to 0. i 2 c master current read count, i2cmcnt1, register name: i2cmcnt1 address: 0xffff0914 default value: 0x00 access: read only function: this 8-bit mmr holds the number of bytes received so far during a read sequence with a slave device. i 2 c address 0, i2cadr0, register name: i2cadr0 address: 0xffff0918 default value: 0x00 access: read and write function: this 8-bit mmr holds the 7-bit slave address and the read/write bit when the master begins communicating with a slave. table 99. i2cadr0 mmr in 7-bit address mode bit name description 7:1 i2cadr these bits contain the 7-bit address of the required slave device. 0 r/ w bit 0 is the read/write bit. when this bit = 1, a read sequence is requested. when this bit = 0, a write sequence is requested. table 100. i2cadr0 mmr in 10-bit address mode bit name description 7:3 these bits must be set to [11110b] in 10-bit address mode. 2:1 i2cmadr these bits contain addr[9:8] in 10-bit addressing mode. 0 r/ w read/write bit. when this bit = 1, a read sequence is requested. when this bit = 0, a write sequence is requested.
aduc7060/aduc7061 rev. c | page 91 of 108 i 2 c address 1, i2cadr1, register name: i2cadr1 address: 0xffff091c default value: 0x00 access: read and write function: this 8-bit mmr is used in 10-bit addressing mode only. this register contains the least significant byte of the address. table 101. i2cadr1 mmr in 10-bit address mode bit name description 7:0 i2cladr these bits contain addr[7:0] in 10-bit addressing mode. i 2 c master clock control, i2cdiv, register name: i2cdiv address: 0xffff0924 default value: 0x1f1f access: read and write function: this mmr controls the frequency of the i 2 c clock generated by the master on to the scl pin. for further details, see the serial clock generation section. table 102. i2cdiv mmr bit designations bit name description 15:8 divh these bits control the duration of the high period of scl. 7:0 divl these bits control the duration of the low period of scl. i 2 c slave registers i 2 c slave control, i2cscon, register name: i2cscon address: 0xffff0928 default value: 0x0000 access: read and write function: this 16-bit mmr configures the i 2 c peripheral in slave mode.
aduc7060/aduc7061 rev. c | page 92 of 108 table 103. i2cscon mmr bit designations bit name description 15:11 reserved bits. 10 i2cstxeni slave transmit interrupt enable bit. set this bit to enable an interrupt after a slave transmits a byte. clear this interrupt source. 9 i2csrxeni slave receive interrupt enable bit. set this bit to enable an inte rrupt after the slave receives data. clear this interrupt source. 8 i2csseni i 2 c stop condition detected interrupt enable bit. set this bit to enable an interrup t on detecting a stop condition on the i 2 c bus. clear this interrupt source. 7 i2cnacken i 2 c no acknowledge enable bit. set this bit to no acknowledge the ne xt byte in the transmission sequence. clear this bit to let the hardware control the acknowledge/no acknowledge sequence. 6 i2cssen i 2 c slave scl stretch enable bit. set this bit to 1 to enable clock stretching. when scl is lo w, setting this bit forces the device to hold scl low until i2cssen is cleared. if scl is high, setting this bit forces the device to hold scl low after the next falling edge. clear this bit to disable clock stretching. 5 i2cseten i 2 c early transmit inte rrupt enable bit. setting this bit enables a transmit request interrupt ju st after the positive edge of scl during the read bit transmission. clear this bit to enable a transmit request interrupt just after the negative edge of scl during the read bit transmission. 4 i2cgcclr i 2 c general call status and id clear bit. writing a 1 to this bit clears the general ca ll status and id bits in the i2cssta register. clear this bit at all other times. 3 i2chgcen hardware general call enable. when this bit and bit 2 are set, and having received a general call (address 0x00) and a data byte, the device checks the contents of the i2 calt against the receive register. if the contents match, the device has received a hardware general call. this is used if a device needs urgent attention from a master device without knowing which master it needs to turn to. this is a to whom it may concern call. the aduc706x watches for these addresses. the device that requires attention embeds its own address into the message. all masters listen, and the one that can handle the device contacts its slave and acts appropriately. the lsb of the i2calt register should always be written to 1, as per the i 2 c january 2000 bus specification. 2 i2cgcen general call enable bit. set this bit to enable the slave device to acknowledge an i 2 c general call, address 0x00 (write). the device then recognizes a data bit. if it re ceives a 0x06 (reset and write programmable part of the slave address by hardware) as the data byte, the i 2 c interface resets as per the i 2 c january 2000 bus specification. this command can be used to reset an entire i 2 c system. if it receives a 0x04 (write programmable part of the slave address by hardware) as the data byte, the general call inte rrupt status bit sets on any general call. the user must take corrective action by reprogramming the device address. 1 adr10en i 2 c 10-bit address mode. set to 1 to enable 10-bit address mode. clear to 0 to enable normal address mode. 0 i2csen i 2 c slave enable bit. set by user to enable i 2 c slave mode. clear to disable i 2 c slave mode.
aduc7060/aduc7061 rev. c | page 93 of 108 i 2 c slave status, i2cssta, register name: i2cssta address: 0xffff092c default value: 0x0000 access: read and write function: this 16-bit mmr is the i 2 c status register in slave mode. table 104. i2cssta mmr bit designations bit name description 15 reserved bit. 14 i2csta this bit is set to 1 if a start condition followed by a matchi ng address is detected, a start byte (0x01) is received, or general calls are enabled and a general call code of 0x00 is received. this bit is cleared on receiving a stop condition 13 i2creps this bit is set to 1 if a repeated start condition is detected. this bit is cleared on receiving a stop condition. 12:11 i2cid[1:0] i 2 c address matching register. these bits indicate wh ich i2cidx register matches the received address. [00] = received address matches i2cid0. [01] = received address matches i2cid1. [10] = received address matches i2cid2. [11] = received address matches i2cid3. 10 i2css i 2 c stop condition after start detected bit. this bit is set to 1 when a stop condition is detected after a previous start and ma tching address. when the i2csseni bit in i2cscon is set, an interrupt is generated. this bit is cleared by reading this register. 9:8 i2cgcid[1:0] i 2 c general call id bits. [00] = no general call received. [01] = general call reset and program address. [10] = general program address. [11] = general call matching alternative id. note that these bits are not cleared by a general call reset command. clear these bits by writing a 1 to the i2cgcclr bit in i2cscon. 7 i2cgc i 2 c general call status bit. this bit is set to 1 if the slave receives a general call command of any type. if the command received was a reset command, then all registers return to their default states. if the command received was a hardware general call, the receive fifo holds the second byte of the command, and this can be compared with the i2calt register. clear this bit by writing a 1 to the i2cgcclr bit in i2cscon. 6 i2csbusy i 2 c slave busy status bit. set to 1 when the slave receives a start condition. cleared by hardware if the received address does not match any of the i2cidx registers, the slave device receives a stop condition, or a repeated start address does not match any of the i2cidx registers. 5 i2csna i 2 c slave no acknowledge data bit. this bit is set to 1 when the slave responds to a bus address with a no acknowledge. this bit is asserted under the following conditions: if a no acknowledge was returned beca use there was no data in the transmit fifo or if the i2cnacken bit was set in the i2cscon register. this bit is cleared in all other conditions. 4 i2csrxfo slave receive fifo overflow. this bit is set to 1 when a byte is written to the receive fifo when it is already full. this bit is cleared in all other conditions. i2csrxq i 2 c slave receive request bit. this bit is set to 1 when the receive fifo of the slave is not empty. this bit causes an interrupt to occur if the i2csrxeni bit in i2cscon is set. 3 the receive fifo must be read or flushed to clear this bit.
aduc7060/aduc7061 rev. c | page 94 of 108 bit name description 2 i2cstxq i 2 c slave transmit request bit. this bit is set to 1 when the slave receives a matching a ddress followed by a read. if the i2cseten bit in i2cscon is =0, this bit goes high just after the negative edge of scl during the read bit transmission. if the i2cseten bit in i2cscon is =1, this bit goes high just after the positive edge of scl during the read bit transmission. this bit causes an interrupt to occur if the i2cstxeni bit in i2cscon is set. this bit is cleared in all other conditions. 1 i2cstfe i 2 c slave fifo underflow status bit. this bit goes high if the transmit fifo is empty when a master requests data from the slave. this bit is asserted at the rising edge of scl during the read bit. this bit is cleared in all other conditions. 0 i2cetsta i 2 c slave early transmit fifo status bit. if the i2cseten bit in i2cscon is =0, th is bit goes high if the slave transmit fifo is empty. if the i2cseten bit in i2cscon = 1, this bit goes high just after the positive edge of scl during the writ e bit transmission. this bit asserts once only for a transfer. this bit is cleared after being read. i 2 c slave receive, i2csrx, register name: i2csrx address: 0xffff0930 default value: 0x00 access: read only function: this 8-bit mmr is the i 2 c slave receive register. i 2 c slave transmit, i2cstx, register name: i2cstx address: 0xffff0934 default value: 0x00 access: write only function: this 8-bit mmr is the i 2 c slave transmit register. i 2 c hardware general call recognition, i2calt, register name: i2calt address: 0xffff0938 default value: 0x00 access: read and write function: this 8-bit mmr is used with hardware general calls when the i2cscon bit 3 is set to 1. this register is used in cases where a master is unable to generate an address for a slave and, instead, the slave must generate the address for the master. i 2 c slave device id, i2cidx, registers name: i2cidx addresses: 0xffff093c = i2cid0 0xffff0940 = i2cid1 0xffff0944 = i2cid2 0xffff0948 = i2cid3 default value: 0x00 access: read and write function: these 8-bit mmrs are programmed with the i 2 c bus ids of the slave. see the i2c bus addresses section for further details.
aduc7060/aduc7061 rev. c | page 95 of 108 i 2 c common registers i 2 c fifo status, i2cfsta, register name: i2cfsta address: 0xffff094c default value: 0x0000 access: read and write function: this 16-bit mmr contains the status of the receive/transmit fifos in both master and slave modes. table 105. i2cfsta mmr bit designations bit name description 15:10 reserved bits. 9 i2cfmtx set this bit to 1 to flush the master transmit fifo. 8 i2cfstx set this bit to 1 to flush the slave transmit fifo. 7:6 i2cmrxsta i 2 c master receive fifo status bits. [00] = fifo empty. [01] = byte written to fifo. [10] = one byte in fifo. [11] = fifo full. 5:4 i2cmtxsta i 2 c master transmit fifo status bits. [00] = fifo empty. [01] = byte written to fifo. [10] = one byte in fifo. [11] = fifo full. 3:2 i2csrxsta i 2 c slave receive fifo status bits. [00] = fifo empty [01] = byte written to fifo [10] = one byte in fifo [11] = fifo full 1:0 i2cstxsta i 2 c slave transmit fifo status bits. [00] = fifo empty. [01] = byte written to fifo. [10] = one byte in fifo. [11] = fifo full.
aduc7060/aduc7061 rev. c | page 96 of 108 serial peripheral interface in slave mode, the spicon register must be configured with the phase and polarity of the expected input clock. the slave accepts data from an external master up to 5.12 mbps. the aduc706x integrates a complete hardware serial peripheral interface (spi) on chip. spi is an industry standard, synchronous serial interface that allows eight bits of data to be synchronously transmitted and simultaneously received, that is, full duplex up to a maximum bit rate of 5.12 mbps. in both master and slave modes, data transmit on one edge of the sclk signal and sample on the other. therefore, it is important that the polarity and phase be configured the same for the master and slave devices. the spi port can be configured for master or slave operation and typically consists of four pins: miso, mosi, sclk, and ss . slave select (p0.0/ ss ) input pin miso (master in, slave out) pin the miso pin is configured as an input line in master mode and an output line in slave mode. the miso line on the master (data in) should be connected to the miso line in the slave device (data out). the data is transferred as byte wide (8-bit) serial data, most significant bit first. ss in spi slave mode, a transfer is initiated by the assertion of on the p0.0/ ss pin, which is an active low input signal. the spi port then transmits and receives 8-bit data until the transfer is concluded by deassertion of mosi (master out, slave in) pin the mosi pin is configured as an output line in master mode and an input line in slave mode. the mosi line on the master (data out) should be connected to the mosi line in the slave device (data in). the data is transferred as byte wide (8-bit) serial data, most significant bit first. sclk (serial clock i/o) pin the master serial clock (scl) synchronizes the data being transmitted and received through the mosi sclk period. therefore, a byte is transmitted/received after eight sclk periods. the sclk pin is configured as an output in master mode and as an input in slave mode. in master mode, polarity and phase of the clock are controlled by the spicon register, and the bit rate is defined in the spidiv register as follows: )1(2 spidiv f f uclk clock serial + = the maximum speed of the spi clock is independent of the clock divider bits. ss . in slave mode, ss is always an input. in spi master mode, ss is an active low output signal. it asserts itself automatically at the beginning of a transfer and deasserts itself upon completion. configuring external pins for spi functionality the spi pins of the aduc706x device are represented by the p0[0:3] function of the following pins: ? p0.0/ ss is the slave chip select pin. in slave mode, this pin is an input and must be driven low by the master. in master mode, this pin is an output and goes low at the beginning of a transfer and high at the end of a transfer. ? p0.1/sclk/scl is the sclk pin. ? p0.2/miso is the master in, slave out (miso) pin. ? p0.3/mosi/sda is the master out, slave in (mosi) pin. to configure p0.0 to p0.3 for spi mode, bit 0, bit 4, bit 8, and bit 12 of the gp0con0 register must be set to 1. bit 1 of the gp0con1 must be set to 1. note that to write to gp0con1, the gp0key1 register must be set to 0x7 immediately before writing to gp0con1. also, the gp0key2 register must be set to 0x13 immediately after writin g to gp0con1. the following code example shows this in detail: gp0con0 = bit0 + bit4 + bit8 + bit12; //select spi/i 2 c alternative function for p0[0...3] gp0key1 = 0x7; //write to gp0key1 gp0con1 &=~ bit1; //select spi functionality for p0.0 to p0.3 gp0key2 = 0x13; //write to gp0key2
aduc7060/aduc7061 rev. c | page 97 of 108 spi registers the following mmr registers control the spi interface: spista, spirx, spitx, spidiv, and spicon. spi status register spista register name: spista address: 0xffff0a00 default value: 0x00000000 access: read only function: this 32-bit mmr contains the status of the spi interface in both master and slave modes. table 106. spista mmr bit designations bit name description 15:12 reserved bits. 11 spirex spi receive fifo excess bytes present. this bit is se t when there are more bytes in the receive fifo than indicated in the spimde bits in spicon. this bit is cleared when the number of bytes in th e fifo is equal to or less than the number in spimde. 10:8 spirxfsta[2:0] spi receive fifo status bits. [000] = receive fifo is empty. [001] = 1 valid byte in the fifo. [010] = 2 valid bytes in the fifo. [011] = 3 valid bytes in the fifo. [100] = 4 valid bytes in the fifo. 7 spifof spi receive fifo overflow status bit. set when the receive fifo was already full when new data was loaded to the fifo. this bit generates an interrupt except when spirflh is set in spicon. cleared when the spista register is read. 6 spirxirq spi receive irq status bit. set when a receive interrupt occurs. this bit is set when spitmde in spicon is cleared and the required number of bytes has been received. cleared when the spista register is read. spitxirq spi transmit irq status bit. set when a transmit interrupt occurs. this bit is set when spitmde in spicon is set and the required number of bytes has been transmitted. 5 cleared when the spista register is read. 4 spitxuf spi transmit fifo underflow. this bit is set when a transmit is initiated without any valid data in the transmit fifo. this bit generates an interrupt except when spitflh is set in spicon. cleared when the spista register is read. 3:1 spitxfsta[2:0] spi transmit fifo status bits. [000] = transmit fifo is empty. [001] = 1 valid bytes in the fifo. [010] = 2 valid bytes in the fifo. [011] = 3 valid bytes in the fifo. [100] = 4 valid bytes in the fifo. 0 spiista spi interrupt status bit. set to 1 when an spi based interrupt occurs. cleared after reading spista.
aduc7060/aduc7061 rev. c | page 98 of 108 spi receive register spirx register name: spirx address: 0xffff0a04 default value: 0x00 access: read only function: this 8-bit mmr is the spi receive register. spi transmit register spitx register name: spitx address: 0xffff0a08 default value: 0x00 access: write only function: this 8-bit mmr is the spi transmit register. spi baud rate selection register spidiv register name: spidiv address: 0xffff0a0c default value: 0x1b access: write only function: this 8-bit mmr is the spi baud rate selection register. spi control register spicon register name: spicon address: 0xffff0a10 default value: 0x0000 access: read and write function: this 16-bit mmr configures the spi peripheral in both master and slave modes.
aduc7060/aduc7061 rev. c | page 99 of 108 table 107. spicon mmr bit designations bit name description 15:14 spimde spi irq mode bits. these bits are configured when transmit/receive interrupts occur in a transfer. [00] = transmit interrupt occurs when 1 byte has been tran sferred. receive interrupt occurs when one or more bytes have been received into the fifo. [01] = transmit interrupt occurs when 2 bytes have been transferred. receive interrupt occurs when two or more bytes have been received into the fifo. [10] = transmit interrupt occurs when 3 bytes have been transferred. receive interrupt occurs when three or more bytes have been received into the fifo. [11] = transmit interrupt occurs when 4 bytes have been tr ansferred. receive interrupt occurs when the receive fifo is full or 4 bytes are present. 13 spitflh spi transmit fifo flush enable bit. set this bit to flush the transmit fifo. th is bit does not clear itself and should be toggled if a single flush is required. if this bit is left high, then either the last transmitted value or 0x00 is trans mitted, depending on the spizen bit. any writes to the transmit fifo are ignored while this bit is set. clear this bit to disabl e transmit fifo flushing. 12 spirflh spi receive fifo flush enable bit. set this bit to flush the receive fifo. this bit does not clear itself and should be toggled if a single flush is required. if this bit is set, all incoming data is ig nored and no interrupts are generated. if set and spitmde = 0, a read of the receive fifo initiates a transfer. clear this bit to disable receive fifo flushing. continuous transfer enable. set by user to enable continuous transfer . in master mode, the transfer continues until no valid data is available in the transmit register. ss is asserted and remains asserted for the duration of each 8-bit serial transfer until the transmit register is empty. 11 spicont cleared by user to disable contin uous transfer. each transfer consists of a sing le 8-bit serial transfer. if valid data exists in the spitx register, then a new transfer is initiated after a stall period of one serial clock cycle. 10 spilp loopback enable bit. set by user to connect miso to mosi and test software. cleared by user to be in normal mode. 9 spioen slave miso output enable bit. set this bit for miso to operate as normal. clear this bit to disable the output dr iver on the miso pin. the miso pin is open drain when this bit is cleared. 8 spirow spirx overflow overwrite enable. set by user, the valid data in the receive register is overwritten by the new serial byte received. cleared by user, the new serial byte received is discarded. 7 spizen spi transmit zeros wh en transmit fifo is empty. set this bit to transmit 0x00 when ther e is no valid data in the transmit fifo. clear this bit to transmit the last transmitted value when there is no valid data in the transmit fifo. 6 spitmde spi transfer and interrupt mode. set by user to initiate transfer with a write to the spitx register. interrupt occurs only when the transmit fifo is empty. cleared by user to initiate transfer with a read of the sp i register. interrupt occurs only when the receive fifo is full. 5 spilf lsb first transfer enable bit. set by user, the lsb is transmitted first. cleared by user, the msb is transmitted first. 4 spiwom spi wired or mode enable bit. set to 1 to enable the open-drain data output enab le. external pull-ups are required on data out pins. clear for normal output levels. serial clock polarity mode bit. set by user, the serial clock idles high. 3 spicpo cleared by user, the serial clock idles low. 2 spicph serial clock phase mode bit. set by user, the serial clock pulses at the beginning of each serial bit transfer. cleared by user, the serial clock pulses at the end of each serial bit transfer.
aduc7060/aduc7061 rev. c | page 100 of 108 bit name description 1 spimen master mode enable bit. set by user to enable master mode. cleared by user to enable slave mode. 0 spien spi enable bit. set by user to enable the spi. cleared by user to disable the spi.
aduc7060/aduc7061 rev. c | page 101 of 108 general-purpose i/o the aduc706x features up to 16 general-purpose bidirectional input/output (gpio) pins. in general, many of the gpio pins have multiple functions that are configurable by user code. by default, the gpio pins are configured in gpio mode. all gpio pins have an internal pull-up resistor with a drive capability of 1.6 ma. all i/o pins are 3.3 v tolerant, meaning that the gpios support an input voltage of 3.3 v. when the aduc706x enters power-saving mode, the gpio pins retain their state. the gpio pins are grouped into three port buses. table 108 lists all the gpio pins and their alternative functions. a gpio pin alternative function can be selected by writing to the correct bits of the gpxcon register. table 108. gpio multifun ction pin descriptions configuration via gpxcon including gp0con0 port pin mnemonic 00 01 0 p0.0/ ss gpio ss (spi slave select). p0.1/sclk/scl gpio sclk/scl (serial clock/spi clock). p0.2/miso gpio miso (spimaster in/slave out). p0.3/mosi/sda gpio mosi (spimaster out/slave in). p0.4/irq0/pwm1 gpio/irq0 pwm1 (pwm output 1). p0.5/cts gpio cts. uart clear to send pin. p0.6/rts gpio rts. uart request to send pin. 1 p1.0/irq1/sin/t0 gpio/i rq1 sin (serial input). p1.1/sout gpio sout (serial output). p1.2/sync gpio pwm sync (pwm sync input pin). p1.3/trip gpio pwm trip (pwm trip input pin). p1.4/pwm2 gpio pwm2 (pwm output 2). p1.5/pwm3 gpio pwm3 (pwm output 3). p1.6/pwm4 gpio pwm4 (pwm output 4). 2 p2.0/irq2/pwm0/extclk gpio/irq2/extclk pwm0 (pwm output 0). p2.1/irq3/pwm5 gpio/irq3 pwm5 (pwm output 5). gpxcon registers gpxcon are the port x (where x is 0, 1, or 2) control registers, which select the function of each pin of port x as described i n table 110 . table 109. gpxcon registers name address default value access gp0con0 0xffff0d00 0x00000000 r/w gp1con 0xffff0d04 0x00000000 r/w gp2con 0xffff0d08 0x00000000 r/w
aduc7060/aduc7061 rev. c | page 102 of 108 table 110. gpxcon mmr bit designations bit description 31:30 reserved. 29:28 reserved. 27:26 reserved. 25:24 selects the function of the p0.6/rts and p1.6/pwm pins. 23:22 reserved. 21:20 selects the function of the p0.5/cts and p1.5/pwm3 pins. 19:18 reserved. 17:16 selects the function of the p0.4/irq0/pwm1 and p1.4/pwm2 pins. 15:14 reserved. 13:12 selects the function of the p0.3/mosi/sda and p1.3/trip pins. 11:10 reserved. 9:8 selects the function of the p0.2/miso and p1.2/sync pins. 7:6 reserved. 5:4 selects the function of the p0.1/sclk/scl, p1.1/sout, and p2.1/irq3/pwm5 pins. 3:2 reserved. 1:0 selects the function of the p0.0/ ss , p1.0/irq1/sin/t0, p2.0/irq2/pwm0/extclk pins. gpxdat registers gpxdat are port x configuration and data registers. they con- figure the direction of the gpio pins of port x, set the output value for the pins that are configured as output, and store the input value of the pins that are configured as input. table 111. gpxdat registers name address default value access gp0dat 0xffff0d20 0x000000xx r/w gp1dat 0xffff0d30 0x000000xx r/w gp2dat 0xffff0d40 0x000000xx r/w table 112. gpxdat mmr bit designations bit description 31:24 direction of the data. set to 1 by user to configure the gpio pin as an output. cleared to 0 by user to config ure the gpio pin as an input. 23:16 port x data output. 15:8 reflect the state of port x pins at reset (read only). 7:0 port x data input (read only). gpxset registers gpxset are data set port x registers. table 113. gpxset registers name address default value access gp0set 0xffff0d24 0x000000xx w gp1set 0xffff0d34 0x000000xx w gp2set 0xffff0d44 0x000000xx w table 114. gpxset mmr bit designations bit description 31:24 reserved. 23:16 data port x set bit. set to 1 by user to set bit on port x; also sets the corresponding bit in the gpxdat mmr. cleared to 0 by user; does not affect the data output. 15:0 reserved. gpxclr registers gpxclr are data clear port x registers. table 115. gpxclr registers name address default value access gp0clr 0xffff0d28 0x000000xx w gp1clr 0xffff0d38 0x000000xx w gp2clr 0xffff0d48 0x000000xx w table 116. gpxclr mmr bit designations bit description 31:24 reserved. 23:16 data port x clear bit. set to 1 by user to clear the bit on port x; also clears the corresponding bit in the gpxdat mmr. cleared to 0 by user; does not affect the data output. 15:0 reserved. gpxpar registers the gpxpar registers program the parameters for port 0, port 1, and port 2. note that the gpxdat mmr must always be written after changing the gpxpar mmr. note that it is not possible to disable the internal pull-up resistor on p0.2. table 117. gpxpar registers name address default value access gp0par 0xffff0d2c 0x00000000 r/w gp1par 0xffff0d3c 0x00000000 r/w gp2par 0xffff0d4c 0x00000000 r/w
aduc7060/aduc7061 rev. c | page 103 of 108 table 118. gpxpar mmr bit designations bit name description 31:15 reserved. 23:16 gpl[7:0] general i/o port pin functionality lock registers. gpl[7:0] = 0, normal operation. gpl[7:0] = 1, for each gpio pin, if this bit is set, writing to the corresponding bit in gpxcon or gpxdat register bit has no effect. 15:8 gpds[7:0] drive strength configuration. this bit is configurable. gpds[x] = 0, maximum source current is 2 ma. gpds[x] = 1, maximum source current is 4 ma. 7:0 gppd[7:0] pull-up disable port x[7:0]. gppd[x] = 0, pull-up resistor is active. gppd[x] = 1, pull-up resistor is disabled. gp0con1 control registers the gp0con1 write values are as follows: gp0key1 = 0x7, gp0con1 = user value, and gp0key2 = 0x13. name: gp0con1 address: 0xffff0468 default value: 0x00 access: read and write function: this register controls the p0.0, p0.1, p0.2, and p0.3 functionality of the multifunction gpio pins. table 119. gp0con1 write sequence name value gp0key1 0x7 gp0con1 user value gp0key2 0x13 table 120. gp0con1 mmr bit designations bit name description 7:2 reserve d these bits must always be set to 0. 1 spii2cs el this bit configures the p0.0 to p0.3 functions in i 2 c or spi mode. note that bit 0 of gp0con1 must be set to 0 for this bit to work. to select the p0.0, p0.1, p0.2, and p0.3 functions in spi mode, clear this bit to 0. to select the p0.0, p0.1, p0.2, and p0.3 functions in i 2 c mode, set this bit to 1. this bit is cleared by default. 0 adcsel this bit configures the p0.0 to p0.3 functions as gpio pins or as adc input pins. to enable p0.0, p0.1, p0.2 and p0.3 functions as adc inputs, set this bit to 1. to enable p0.0, p0.1, p0.2, and p0.3 functions as digital i/o, clear this bit to 0. this bit is cleared by default. name gp0key1 address: 0xffff0464 default value: 0xxxxx access: write only function: when writing to gp0con1, the value of 0x07 must be written to this register in the instruction immediately before writing to gp0con1. name: gp0key2 address: 0xffff046c default value: 0xxxxx access: write only function: when writing to gp0con1, the value of 0x13 must be written to this register in the instruction immediately after writing to gp0con1.
aduc7060/aduc7061 rev. c | page 104 of 108 hardware design considerations aduc7060/ aduc7061 0.1f analog supply 10f avdd dvdd dgnd agnd 0.1f digital supply bead 10f + ? 07079-023 power supplies the aduc706x operational power supply voltage range is 2.375 v to 2.625 v. separate analog and digital power supply pins (avdd and dvdd, respectively) allow avdd to be kept relatively free of noisy digital signals often present on the system dvdd line. in this mode, the part can also operate with split supplies; that is, it can use different voltage levels for each supply. for example, the system can be designed to operate with a dvdd voltage level of 2.6 v, whereas the avdd level can be at 2.5 v or vice versa. a typical split supply configuration is shown in figure 28 . figure 29. external sing le supply connections aduc7060/ aduc7061 0.1f analo g supply 10f avdd dvdd dgnd agnd 0.1f + ? digital supply 10f + ? 07079-022 notice that in both figure 28 and figure 29 , a large value (10 f) reservoir capacitor sits on dvdd, and a separate 10 f capacitor sits on avdd. in addition, local, small value (0.1 f) capacitors are located at each avdd and dvdd pin of the chip. as per standard design practice, be sure to include all of these capacitors and ensure that the smaller capacitors are close to the avdd pin with trace lengths as short as possible. connect the ground terminal of each of these capacitors directly to the underlying ground plane. note that the analog and digital ground pins on the aduc706x must be referenced to the same system ground reference point at all times. figure 28. external dual supply connections as an alternative to providing two separate power supplies, the user can reduce noise on avdd by placing a small series resistor and/or ferrite bead between avdd and dvdd, and then decoupling avdd separately to ground. an example of this configuration is shown in finally, note that, when the dvdd supply reaches 1.8 v, it must ramp to 2.25 v in less than 128 ms. this is a requirement of the internal power-on reset circuitry. figure 29 . with this configuration, other analog circuitry (such as op amps, voltage reference, and others) can be powered from the avdd supply line as well.
aduc7060/aduc7061 rev. c | page 105 of 108 outline dimensions compliant to jedec standards mo-220-vhhd-2 0.30 0.23 0.18 0.20 ref 0.80 max 0.65 typ 0.05 max 0.02 nom 12 max 1.00 0.85 0.80 seating plane coplanarity 0.08 1 32 8 9 25 24 16 17 0.50 0.40 0.30 3.50 ref 0.50 bsc pin 1 indicator top view 5.00 bsc sq 4.75 bsc sq 3.65 3.50 sq 3.35 pin 1 indicator 0.60 max 0.60 max 0.25 min exposed pad (bottom view) 100608-a for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. figure 30. 32-lead lead frame chip scale package [lfcsp_vq] 5 mm 5 mm body, very thin quad (cp-32-4) dimensions shown in millimeters pin 1 indicator top view 6.75 bsc sq 7.00 bsc sq 1 48 12 13 37 36 24 25 4.25 4.10 sq 3.95 0.50 0.40 0.30 0.30 0.23 0.18 0.50 bsc 12 max 0.20 ref 0.80 max 0.65 typ 1.00 0.85 0.80 5.50 ref 0.05 max 0.02 nom 0.60 max 0.60 max pin 1 indicator coplanarity 0.08 seating plane 0.25 min exposed pad (bottom view) compliant to jedec standards mo-220-vkkd-2 042809-a for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. figure 31. 48-lead lead frame chip scale package [lfcsp_vq] 7 mm 7 mm body, very thin quad (cp-48-3) dimensions shown in millimeters
aduc7060/aduc7061 rev. c | page 106 of 108 compliant to jedec standards ms-026-bbc top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc lead pitch 1.60 max 0.75 0.60 0.45 view a pin 1 0.20 0.09 1.45 1.40 1.35 0.08 coplanarity view a rotated 90 ccw seating plane 7 3.5 0 0.15 0.05 9.20 9.00 sq 8.80 7.20 7.00 sq 6.80 051706-a figure 32. 48-lead low profile quad flat package [lqfp] (st-48) dimensions shown in millimeters ordering guide package option ordering quantity model 1 temperature range package description aduc7060bcpz32 ?40c to +125c 48-lead lead fram e chip scale package [lfcsp_vq] cp-48-3 aduc7060bcpz32-rl ?40c to +125c 48-lead lead fr ame chip scale package [lfcsp_vq] cp-48-3 2,500 aduc7060bstz32 ?40c to +125c 48-lead low profile quad flat package [lqfp] st-48 ADUC7060BSTZ32-RL ?40c to +125c 48-lead low pr ofile quad flat package [lqfp] st-48 2,000 aduc7061bcpz32 ?40c to +125c 32-lead lead frame chip scale package [lfcsp_vq] cp-32-4 aduc7061bcpz32-rl ?40c to +125c 32-lead lead frame chip scale package [lfcsp_vq] cp-32-4 5,000 eval-aduc7060qspz aduc7060 quick start plus development system eval-aduc7061mkz aduc7061 quick start evaluation system 1 z = rohs compliant part.
aduc7060/aduc7061 rev. c | page 107 of 108 notes
aduc7060/aduc7061 rev. c | page 108 of 108 notes ?2009C2011 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d07079-0-5/11(c)


▲Up To Search▲   

 
Price & Availability of ADUC7060BSTZ32-RL

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X